Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaped characters #48

Open
mortocks opened this issue Feb 26, 2016 · 0 comments
Open

Escaped characters #48

mortocks opened this issue Feb 26, 2016 · 0 comments

Comments

@mortocks
Copy link

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.

@mortocks mortocks changed the title Escaped charactures Escaped characters Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant