JSON is a java script Object Notification, is a lightweight Data-interchange format. Its easy for human read and write. Easy for machine to parse and generate. It is free from language but uses conventions that are familiar to programmer of C,C#,Java etc..
Json Built on two structures :
1. A collection of name/value pairs called object, record, struct, key list, hash table in language terms.
2. An ordered list of values called array, vector, list in language terms.
These are the universal data structures. Virtually all languages supports these structure in one form to another.
In Json following form is used:
1. An object is an unordered set of name/value pairs. which starts with { and ends with } and each name is followed by : and the name/value pair is separated by comma.
2. An array is an ordered set of values, which starts with [ and ends with ] and each value is separated by comma.
3. A value can be string, int, struct, array, object and these structures can be nested.
4. A string is a collection of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a single character string. A string is very much like a C or Java string.
No comments:
Post a Comment