Learning JSON in minutes @AndroidMonk

WiseL Teach
WiseLTeach
Published in
2 min readJan 2, 2017

JSON parsing is a very common and important thing to learn in programming. Almost every other data coming from server is in the form of JSON (from Android point of view). But before going into the depth lets find out what JSON means.

Definition JSON

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. Thus, widely used in programming.

Example JSON: http://www.objgen.com/json?demo=true

Here, in the above example we have one ‘Emergency List’ with two ‘emergency contacts’ with information like ‘name’, ‘phone’ and ‘relationship’.

JSON mainly consists of two parts: JSON Objects and JSON Arrays

JSON Objects vs. JSON Arrays

JSON Objects: { }

JSON Arrays: [ ]

NOTE: JSON Array can contain and multiple JSON objects and vice-versa.

Try to create JSON of your family or a set of questions or your contacts and post that into comment section. We will check that provide you the required suggestion.

Demo Video Link: http://www.objgen.com/json?demo=true

You can check JSON validity here: http://jsonlint.com

#AndroidMonk

#WiseLTeach #WiseL

--

--

WiseL Teach
WiseLTeach

Personalized digital learning solutions that provides assistance to students and teachers.