D
D
Denis2014-12-09 00:50:28
JavaScript
Denis, 2014-12-09 00:50:28

How to get data from a dictionary data in one line?

Hello.
The server returns the data in the form of a dictionary, i.e. key-value list.
On the client, data is received after using JSON.stringify(dictionary), in this form:
{"A1": "Пиво", "A2":"Вино", "А3":"Домино"}how to get the string from here "Пиво, Вино, Домино".
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2014-12-09
@den_labs

jsfiddle.net/QW01_01/ahuyb2pg

D
Denis, 2014-12-09
@den_labs

Thanks, that's what you need.
There is another question, but how then to get the string "A1, A2, A3"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question