All about Json and Moshi Library
JavaScript Object Notation - JSON A lightweight format for storing and transporting data. It is often used when data is sent from a server to a web page. JSON Syntax : Data is always in (name: value) pair Data is separated by commas Curly braces hold objects Square brackets hold arrays JSON is built on two structures: A collection of name/value pairs. In various languages, this is realised as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of values. In most languages, this is realised as an array, vector, list, or sequence. It then goes on to describe the two structures as: Note that the starting and ending characters are curly brackets and square brackets respectively. Json nodes will start with a square bracket [ ] or with curly bracket { } [ ] = represents the beginning of a JSONArray node so we need to use getJSONArray() { } = represents the beginning of a JSONObject node s...