AnyRoad / react-json-view-lite

Lightweight Json view component for React
155 stars 14 forks source link

don't add quotes to string #22

Closed turbocrime closed 6 months ago

turbocrime commented 6 months ago

or at least provide the option to turn it off. this could be done with css, if necessary.

https://github.com/AnyRoad/react-json-view-lite/blob/cb6558c1cd04bd40d4bbf66591d3ef71a403c208/src/DataRenderer.tsx#L185

going further, punctuation could also be styled.

AnyRoad commented 6 months ago

Hi! Unfortunatelly styling is not very convinient, I will try to improve it in the next major version.

For now I've added the noQuotesForStringValues property to the StyleProps. You can upgrade to the 1.3.0 version.

I've also added it to the storybook - https://anyroad.github.io/react-json-view-lite/?path=/story/json-view--render-strings-without-objects