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

Add an option to unquote embedded JSON #8

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Add an option to unquote embedded JSON #8

merged 1 commit into from
Oct 14, 2020

Conversation

matt4biz
Copy link
Owner

Remove extra quotes around {} and un-escaping quotes on strings

$ envy add test a='{"one":{"a":"1","b":"2"},\n "two":{"a":"5","b":"6"}}'

which would normally be output as

{"a": "{\"one\":{\"a\":\"1\",\"b\":\"2\"},\\n \"two\":{\"a\":\"5\",\"b\":\"6\"}}"}

now becomes

{"a":{"one":{"a":"1","b":"2"}, "two":{"a":"5","b":"6"}}}

…es around {} and un-escaping quotes on strings
@matt4biz matt4biz merged commit ffd4b35 into trunk Oct 14, 2020
@matt4biz matt4biz deleted the fixes branch October 14, 2020 01:36
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

Successfully merging this pull request may close these issues.

1 participant