Python JSON



JSON module in python is used to parse json files

JSON is a format that is used to store and organize the information in easy to access manner

When we do a json.loads(info) , the following translation happens


     |  Performs the following translations in decoding by default:
     |
     |  +---------------+-------------------+
     |  | JSON          | Python            |
     |  +===============+===================+
     |  | object        | dict              |
     |  +---------------+-------------------+
     |  | array         | list              |
     |  +---------------+-------------------+
     |  | string        | unicode           |
     |  +---------------+-------------------+
     |  | number (int)  | int, long         |
     |  +---------------+-------------------+
     |  | number (real) | float             |
     |  +---------------+-------------------+
     |  | true          | True              |
     |  +---------------+-------------------+
     |  | false         | False             |
     |  +---------------+-------------------+
     |  | null          | None              |

     |  +---------------+-------------------+




JSON stands for Java Script Object Notation



On the Web Servers can return information in any format

The technology that you can use on the Server can be anything.
The information that is returned is only DATA

In the application, we do not care about the technology

What the Mobile/Desktop apps need from the Servers is only Data

We can send the data from server to client in any format

It will be difficult for you to parse it

The moment you send some complex data, it becomes hard for the browser/mobile App/ any app to parse the data

To make it easy for the Apps/











Comments