An Interesting JSON Example

In web services development folks use JSON all the time. However, the JSON format itself is very interesting, in terms of the wide range of semantics (e.g. classes lists, dicts etc) it can represent

Recent I spent some time understanding the format itself.

Example 1:


Example 2:


Notice how the “CategoricalEntries” section actually represents different semantics –

  • Example1 : “CategoricalEntries” represents list of objects. The object has two properties explicitly called “Name” and “Value”
  • Example2 : “CategoricalEntries” represents a Dictionary<string, string>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s