# \[Data Format\] JSON

**URL:** <https://forum.cedalo.com/t/data-format-json/46>\
**Category:** MQTT protocol\
**Created:** [May 7, 2019, 12:25pm UTC](https://forum.cedalo.com/t/data-format-json/46 "2019-05-07T12:25:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [May 7, 2019, 12:25pm UTC](https://forum.cedalo.com/t/data-format-json/46/1 "2019-05-07T12:25:13Z")

</div>

Their are a variety of formats used to represent data in a structured and standarized way. JSON is one of them and primarly used in the Streamsheets.

**JSON**

JSON is a text-based data format that is the lightweight alternative to XML widely used on the Web for data interchange. Key-value pairs are used to structure data.

> {“Key”:“Value”}

Multiple key-value pairs can be combined and structured in a hierarchy.

> {  
> “Data”: {“Interesting Data 1”:12,“Interesting Data 2”:15,  
> “More Data”: {“Data from A”:17,“Data from B”:1234,“Data from C”:625,“Data from D”:892}  
> }  
> }

Streamsheets always work with JSON-Objects. You may have not noticed it, but all incoming messages are formated in JSON. We use a simple visualization to make it easier to understand. The above example looks like this:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/streamsheets/original/1X/37d0a4b2b5ecd5f00e0239a1f01d19345652c981.png)

If you want to find out more about JSON visit their [offical website](https://www.json.org/). Also check out what a [JSON-Range](https://forum.cedalo.com/t/beginner-what-is-a-json-range/45) is in the Streamsheets.
