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 option for rendering escaped JSON as-is #8

Closed
dit7ya opened this issue Jan 30, 2024 · 3 comments
Closed

Add option for rendering escaped JSON as-is #8

dit7ya opened this issue Jan 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dit7ya
Copy link

dit7ya commented Jan 30, 2024

For something like this, I would expect to see the escaping correctly (as jq does it).

echo '{"foo": "\""}' | jq
{
  "foo": "\""
}

However, this library shows the following
image

Can we have a configuration option for that?

@zerodevx
Copy link
Owner

Good catch.. escaped chars should be displayed accordingly as standard behaviour. Gonna mark this as a bug - will work on it once I get a moment.

@zerodevx zerodevx added the bug Something isn't working label Jan 31, 2024
@zerodevx
Copy link
Owner

This is fixed with https://github.com/zerodevx/svelte-json-view/releases/tag/v1.0.8. Thanks for raising this issue!

@dit7ya
Copy link
Author

dit7ya commented Feb 17, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants