JSON format

JSON is simply a standard format to store data with "Key-Value pairs". Most of the SaaS today support JSON format for passing and receiving data though API connection. Here is an example of JSON:

As you can see in the example above, { } is used to define object and [ ] is used to define array.

So what is object? You can imagine that "object" is a thing, and we can have different description to describe this thing. In the above example, "ContactInfo" is an object and we description this object with familyName, fullName and givenName.

So what is array then? Array is a space to store related objects. In the above example, "photos" is an array that can store more than 1 photo object which defined with typeName, type, typeId, url and isPrimary. Simply clone the photo object and fill in different value to add 1 more photo object.

results matching ""

    No results matching ""