51. JSON Module : Python

JSON Module

JSON Module in Python

JSON represents JavaScript Object Notation. JSON is an information exchange design got from JavaScript. It is for the most part utilized for putting away or moving information. A JSON is an unordered assortment of key and worth sets like a python word reference.

  • Keys are exceptional strings that can't be invalid.
  • Qualities can be anything from a String, Number, Tuple, Boolean, rundown, or invalid.
  • A JSON is addressed by a string which is encased inside wavy supports { } with key-esteem sets which are isolated by a colon ( : ) and sets isolated by a comma(, ).


Techniques -

  • load() - This technique is utilized to stack information from a JSON document into a python word reference.
  • Loads( ) - This strategy is utilized to stack information from a JSON variable into a python word reference.
  • dump() - This technique is utilized to stack information from the python word reference to the JSON document.
  • dumps() - This technique is utilized to stack information from the python word reference to the JSON variable.


What parsing does do?

Parsing changes the code starting with one structure over then onto the next, making it viable with running on the other stage by changing all the little grammar contrasts and making it ideal for running on the other stage.

Post a Comment

0 Comments