5:16 pm - Monday April 24, 2017

What is JSON?

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

Java Script Object Notation is a text based format for exchanging data.
JSON is human readable format.
JSON is language independent.
It is light weight component. It doesn’t need any compilation process to execute it.
It supports many languages. Ex: JAVA, C, C#, .net…..
It has a standard database structure.
It supports two type of structure in database.

1. Store values.
Like an array in java.

2. Store key and corresponding values.
Like map in java.

It is used as an alternate for xml.

In JSON:

{"Student": {
 "id": "stuId",
 "value": "123",
 "details": {
 "address": [
 {"value": "Chennai"},
 {"value": "Tamil nadu”}
 ]
 }
}}

In XML:

<Student id="stuId" value="123">
 <details>
 <address value="chennai" />
 <address value="Tamil nadu" />
 </details>
</Student>
Filed in: Z-A JSON codes

Comments are closed.