JSON

These days, you’ll see JSON most often. (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write, and despite being based on JavaScipt language standard you do not need to use JavaScript - you can use any language. It is easy for machines to parse and generate.

What's the Difference?

XML is a markup language, JSON is a way of representing objects. Generally speaking, JSON is preferred for IoT applications since it can self-describe and is more programmatic, where XML was made for document mark up like HTML.

This guide was first published on Dec 14, 2017. It was last updated on Dec 14, 2017.
This page (JSON) was last updated on Sep 25, 2020.