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

How to use user's input as a key

Open craigyu opened this issue 8 years ago • 0 comments

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!

craigyu avatar Mar 28 '17 07:03 craigyu