|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
27.02.2016, 00:18 | #1 | |
Регистрация: 16.04.2009
Сообщений: 9
|
Конвертирование JSON строки в объект
Добрый день. Имеется JSON строка следующего вида:
Цитата:
Код:
|
|
27.02.2016, 00:24 | #2 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
Как именно мешают?
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
27.02.2016, 00:34 | #3 | |
Регистрация: 16.04.2009
Сообщений: 9
|
Если бы строка была вида
Цитата:
Код:
|
|
27.02.2016, 00:41 | #4 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
Ну всегда можно просто
Код:
Код:
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
27.02.2016, 00:52 | #5 | |
Регистрация: 16.04.2009
Сообщений: 9
|
Цитата:
То есть я могу спокойно получить отсюда jsonObj["countries"]["DE"] данные, но, само "DE" я не могу достать( |
|
27.02.2016, 00:53 | #6 |
Регистрация: 16.04.2009
Сообщений: 9
|
Уточню что строка постоянно меняется и мне каждый раз необходимо пользоваться перебором.
|
27.02.2016, 01:10 | #7 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
Код:
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
27.02.2016, 01:14 | #8 |
Регистрация: 16.04.2009
Сообщений: 9
|
Спасибо за помощь )
|
27.02.2016, 10:01 | #9 |
Регистрация: 16.04.2009
Сообщений: 9
|
Получилось сделать немного по другому, но за наводку огромное спасибо еще раз!
Код:
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
JSON Exception [org.apache.json] | spectrum988 | Помощь студентам | 3 | 11.12.2015 09:25 |
JSON положить объект в объект | Dozent | Общие вопросы Delphi | 7 | 30.03.2015 12:57 |
Передача JSON-строки из PHP в JavaScript | Voronar | JavaScript, Ajax | 5 | 09.02.2013 19:00 |
Итерация через объект JSON в Javascript | maomam | Помощь студентам | 0 | 03.11.2012 00:51 |
Как в JSON выразить объект? | Utkin | Общие вопросы по программированию, компьютерный форум | 6 | 16.06.2012 00:01 |