How to get values from json and put them into a form on a page?
-
Good afternoon. How can I get values from Json and create checkboxes with these values or a list on the page. Is it feasible or not?
json{"task_server_response":"lang_info","langs":[{"name":"Арабский","code":"ar"},{"name":"Немецкий","code":"de"},{"name":"Английский","code":"en"},{"name":"Французский","code":"fr"},{"name":"Русский","code":"ru"},{"name":"Украинский","code":"uk"},{"name":"Китайский (упрощенный)","code":"zh-cn"},{"name":"Китайский (традиционный)","code":"zh-tw"}],"pairs":[{"first":"ar","second":"ru"},{"first":"de","second":"ru"},{"first":"en","second":"ru"},{"first":"fr","second":"ru"},{"first":"ru","second":"uk"},{"first":"ru","second":"ar"},{"first":"ru","second":"zh-tw"},{"first":"ru","second":"en"},{"first":"ru","second":"fr"},{"first":"ru","second":"zh-cn"},{"first":"ru","second":"de"},{"first":"uk","second":"ru"},{"first":"zh-cn","second":"ru"},{"first":"zh-tw","second":"ru"}]}
JavaScript Anonymous, Oct 10, 2019 -
Realizable.
JSON.parse ()Violet Avery
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!