JSON ANALYZER

Fork me on GitHub
Details Terminal Code Try it online

Details:

About:

Analyze and measure where you should spend your time optimizing your json files or rest apis.

Use it either in our online demo, command line or in your online node/browser project.

Examples of things you may need to use this are:

  • Optimizing some REST API payload
  • Initial server redux state
  • JSON files
  • NO-SQL documents
  • JSON like js objects

Install instructions:

With yarn:

yarn global add json-analyzer

With npm:

npm install -g json-analyzer

how to use it:

json-analyzer path/to/file.json

Install instructions:

With yarn:

yarn add json-analyzer

With npm:

npm install json-analyzer

Use instructions:

With require:

const jsonAnalyzer = require("json-analyzer"); const jsonObj = { "hello": "world" }; console.log( jsonAnalyzer({ json: jsonObj /* verbose: true/false, maxDepth: positive_number, target: "nodeName[positive_number].nodeName" */}) );

With import:

import jsonAnalyzer from "json-analyzer"; const jsonObj = { "hello": "world" }; console.log( jsonAnalyzer({ json: jsonObj /* verbose: true/false, maxDepth: positive_number, target: "nodeName[positive_number].nodeName" */}) );

Try online:

Paste json below:

Result: