/JavaScript

Collection of JavaScript samples

Primary LanguageJavaScript

JavaScript Misc

JsonParse

Tired of nested, stringified JSON?

larry:~/JavaScript (master=)$ jsonparse Sample.json
Sample.json
application/json
application/json is not JSON
{"access_token":{"client_id":"XXX"},"client_id":"XXX"}
{
  "Content-Type": "application/json",
  "x-ads-token-data": {
    "access_token": {
      "client_id": "XXX"
    },
    "client_id": "XXX"
  }
}