nmeylan / json-table-editor

A tool to view JSON array as table, to ease visualisation and edition of large json array with performance as main objective
https://jsontable.app
Apache License 2.0
15 stars 3 forks source link

Editing array contaning nested object is not working #48

Closed nmeylan closed 1 week ago

nmeylan commented 2 weeks ago

Opening subtable of an array containing

[
        {
          "level": 1,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 24
          }
        },
        {
          "level": 2,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 28
          }
        },
        {
          "level": 3,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 32
          }
        },
        {
          "level": 4,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 36
          }
        },
        {
          "level": 5,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 40
          }
        },
        {
          "level": 6,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 44
          }
        },
        {
          "level": 7,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 48
          }
        },
        {
          "level": 8,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 52
          }
        },
        {
          "level": 9,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 56
          }
        },
        {
          "level": 10,
          "value": {
            "bonus": "ChanceToInflictStatusOnAttackPercentage",
            "value": "Stone",
            "value2": 60
          }
        }
      ]

Generate

[
1,
  {

  },
1,
  {

  },
2,
  {

  },
2,
  {

  },
3,
  {

  },
3,
  {

  },
4,
  {

  },
4,
  {

  },
5,
  {

  },
5,
  {

  },
6,
  {

  },
6,
  {

  },
7,
  {

  },
7,
  {

  },
8,
  {

  },
8,
  {

  },
9,
  {

  },
9,
  {

  },
10,
  {

  },
10,
  {

  }
]

image

while editing this kind of array is working fine

[
  {
    "amount": 15,
    "level": 11
  },
  {
    "amount": 17,
    "level": 2
  },
  {
    "amount": 19,
    "level": 3
  },
  {
    "amount": 21,
    "level": 4
  },
  {
    "amount": 23,
    "level": 5
  },
  {
    "amount": 25,
    "level": 6
  },
  {
    "amount": 27,
    "level": 7
  },
  {
    "amount": 29,
    "level": 8
  },
  {
    "amount": 31,
    "level": 9
  },
  {
    "amount": 33,
    "level": 10
  }
]