Skip to content

mindaugasw/json-deep-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

JSON deep decoder

A helper app to deeply decode JSON which may have some of its values as JSON-strings.

Live demo


E.g. this JSON:

{
  "deeply": "{\"encoded\":\"value\"}"
}

Will be decoded to:

{
  "deeply": {
    "encoded": "value"
  }
}

While most other tools would not decode it any further and return the same JSON from input.

Supports decoding both JSON at the top level and JSON string. The following string is equivalent to the input above:
"{\"deeply\":\"{\\\"encoded\\\":\\\"value\\\"}\"}"

Even more deeply encoded JSON example:
"{\"very\": \"{\\\"deeply\\\":\\\"{\\\\\\\"encoded\\\\\\\":\\\\\\\"value\\\\\\\"}\\\"}\"}"

Will be decoded to:

{
  "very": {
    "deeply": {
      "encoded": "value"
    }
  }
}

Releases

No releases published

Packages

No packages published

Languages