Open globetro opened 8 months ago
You can use something like this
<JsonView >
<JsonView.Colon render={() => <span />}/>
<JsonView.KeyName
render={({ ...props }, { type, value, keyName }) => {
if (!isNaN(parseFloat(keyName))) {
return <span />
}
return <span {...props}>{keyName}:</span>
}}
/>
</JsonView>
If there are numeric keys out of array, then it will not work
+1 to this, the proposed workaround doesn't really work that well
@globetro @antipopp @morgothko Upgrade v2.0.0-alpha.28
I'd ideally like to be able to just select text to copy/paste (versus relying on the inline-copy button), and showing the indexes makes it not possible.