Skip to content

Escaped characters  #48

Description

@mortocks

Can't seem to deal with json with escaped characters.

[{
"id": 413,
"description": "This \"String\" can't be processed even though its valid json."
}]

Have tried

curl $URL | jsawk  -n 'out(this["description"])'
// json parse error


curl $URL > json.json
cat json.json |  jsawk  -n 'out(this["description"])'
// json parse error. looking at json.json the " characters seem to be escaped. 

Not sure if I'm missing a special flag but can't see any information in the documentation or examples of how to use the -i flag to load escaped json from file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions