Allow update JSON Object or array value

+1 vote
asked Feb 10, 2022 in Wanted features by tom10271 (140 points)

Example

@startuml

!$data={

    "partlen": "2",

    "game": "GamePlantuml",

    "participants": [

        {

            "name": "XYZ",

            "as": "xyz",

            "team": "A"

        }

    ],

    "color": {

        "A": "red",

        "B": "blue",

        "rst": "fuck"

    },

    "asd": 1

}

!%set_json_val("$data.color.A", "black")

!$data.color.A = "black"

! %json_array_push($data.participants, {

    "name": "New"

})

@enduml

1 Answer

0 votes
answered Aug 4 by Potherca (430 points)
...