JSON
Java Script Object Notation.
This is neither a row-based nor Columnar Format.
The flexible way to store & share data across systems.
It's a text file with curly braces & key-value pairs { }
Simplest JSON format
{"id": "1","name":"Rachel"}Properties
Language Independent.
Self-describing and easy to understand.
Basic Rules
Curly braces to hold the objects.
Data is represented in Key Value or Name Value pairs.
Data is separated by a comma.
The use of double quotes is necessary.
Square brackets [ ] hold an array of data.
JSON Values
Sample JSON Document
JSON Best Practices
No Hyphen in your Keys.
Under Scores Okay
Lowercase Okay
Camelcase best
Use Cases:
APIs and Web Services: JSON is widely used in RESTful APIs for sending and receiving data.
Configuration Files: Many modern applications and development tools use JSON for configuration.
Data Storage: Some NoSQL databases like MongoDB use JSON or BSON (binary JSON) for storing data.
Serialization and Deserialization: Converting data to/from a format that can be stored or transmitted.
Serialize
Convert Python Object to JSON Format
DeSerialize
Convert JSON Format/File to Python Object
Last updated