[[+content_image]]
P
P
pthon2020-01-22 04:35:57
Java
pthon, 2020-01-22 04:35:57

How to convert Json to such an array?

Hello!
There is a site that produces json like this:

[["12345","В использовании"],["123457","В использовании"],["1234579","На заправке"],["12345759","На заправке"]]

I get it this way:
URL Content = new URL(URLQ[0]);
            BufferedReader inC = new BufferedReader(new InputStreamReader(
                    Content.openStream()));
            Com = inC.readLine();

How to convert this json response into an array of type array[0][$someInt]?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
Y
Yerlan Ibraev, 2020-01-22
@mad_nazgul

gson ?!
:-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question