AnyRoad / react-json-view-lite

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

Show empty keys in objects #9

Closed dartess closed 1 year ago

dartess commented 1 year ago
image

At first I did not understand what "-1" means in an object. It's actually "": -1. Maybe it's worth showing such keys in this way? Or will it require a lot of modifications?

AnyRoad commented 1 year ago

While empty string key is not so common I think it is a bug and I will fix it in the next version.

AnyRoad commented 1 year ago

Fixed in the version 0.9.8, storybook updated with the example: https://anyroad.github.io/react-json-view-lite/?path=/story/json-view--basic