Skip to content

Quickly scan a JSON file for its structure, useful to detect repeating structural patterns.

Notifications You must be signed in to change notification settings

not-a-duck/JSON-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

JSON-structure

./json-structure.py -f example.json

Identified types / structures

{
  "1": "String",
  "2": "Number",
  "3": {
    "name": "String",
    "surname": "String",
    "age": "Number"
  },
  "4": [
    "3"
  ],
  "5": [
    "Number"
  ],
  "6": {
    "integers": "5",
    "numbers": "5"
  },
  "7": [],
  "8": {
    "person": "3",
    "people": "4",
    "silly": "6",
    "emptylist": "7"
  }
}

Note that the last identified structure is the same as the entire JSON result output.

Result

{
  "person": "3",
  "people": "4",
  "silly": "6",
  "emptylist": "7"
}

About

Quickly scan a JSON file for its structure, useful to detect repeating structural patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages