react-json-editor
react-json-editor copied to clipboard
How to use user's input as a key
Hi,
I'm new to react and javascript, I want to do something like this:
"APPLY": [{ "countType": { "COUNT": "rooms_furniture" } }, { "sumSeats": { "SUM": "rooms_seats" } }, { "avgSeats": { "AVG": "rooms_seats" } }]
for countType, sumSeats and avgSeats, they should be user's input string, is there a way to achieve that using react-json-editor? Thank you!