maxatwork / form2js

Javascript library for collecting form data
http://maxatwork.github.com/form2js/
MIT License
640 stars 137 forks source link

JSON Output format #75

Open avinash2015 opened 9 years ago

avinash2015 commented 9 years ago

I have following JSON format which comes dynamically: { "JSON": [ { "key": "a", "val": "aaa", "sub": [ { "key": "b", "val": "bbb" } ] } ] } And I want to convert it in following output:

{ "JSON": [ { "a": "aaa",
"sub": [ { "b": "bbb"
} ] } ] }

Instead of key word I want actual Key-Value and instead of value word I want actual value. So where to modify form2js. My HTML is:

: