K
K
KambulovDanil2020-10-27 10:16:08
JavaScript
KambulovDanil, 2020-10-27 10:16:08

How to get values ​​from json and put them in 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"}]}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-10-27
@Rsa97

Realizable.
JSON.parse()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question