Skip to content

WeAreDevelopers-com/tips-and-tricks-json

Repository files navigation

WeAreDevelopers Logo

Tips and Tricks for Working with JSON

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.

Table of Contents

  1. Safe parsing
  2. Validating JSON
  3. Pretty printing
  4. Replacer
  5. Reviver
  6. Deep clone
  7. Convert to query string
  8. Dynamically create JSON
  9. Merging
  10. Extracting data with flatMap

Installation

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

Additional Links

Authors

This project was created by Daniel Cranney (Developer Advocate at WeAreDevelopers) - @danielcranney.

About

Tips and tricks for working with JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published