This repository accompanies a blog article and video on the same topic, sharing tips and tricks for working with JSON. This example uses NodeJS, and if you would like to show how to achieve the same results in a different environment or using a different programming language, please submit a pull request.
- Safe parsing
- Validating JSON
- Pretty printing
- Replacer
- Reviver
- Deep clone
- Convert to query string
- Dynamically create JSON
- Merging
- Extracting data with flatMap
The run the code within a given file, simply run node
followed by the name of the file you wish to run. For example:
node 01-safe-parse
- This information is available in video format on our Watch section.
- You can also find a blog explaining each of the tips at tricks at.
This project was created by Daniel Cranney (Developer Advocate at WeAreDevelopers) - @danielcranney.