react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

how to expand at a particular object/array index

Open nelsieborja opened this issue 10 months ago • 1 comments

Is there a way to support expanding at a particular index?

Given the following values:

// Array
[
  {"key0": {...} },
  {"key1": {...} },
]

// Object
{
  "key0": {
    "key0": {...},
    "key1": {...}
  } ,
  "key1": "value1" ,
}

// Mixed
{
  "key0": [
    {...},
  ],
  "key1": "value1" ,
}

Say I want the first entry from the first level to be expanded, would it be possible to achieve this by passing something like expanded={1.1}?

nelsieborja avatar Aug 14 '23 12:08 nelsieborja