Open mschipperheyn opened 5 months ago
@mschipperheyn I cannot reproduce the error you described, please provide an example that can reproduce the error.
I've added a sandbox here
IMHO JsonView should deal with plain strings in a way that displays it normally
@mschipperheyn This package is for JSON preview, not a string preview tool.
- <ReactJsonView value="data" />;
+ <ReactJsonView value={{ a: "data" }} />;
If you try to display a regular string with JsonView (sometimes you can't predict the input), it renders an array of characters. I would expect the string in an "illegal scenario" to be rendered as is.