E
E
EvgenySManko2017-02-22 01:05:41
Java
EvgenySManko, 2017-02-22 01:05:41

How to get HashMap from JSON string?

Hello. There is a JSON string like:

{ 
    "data" : 
    { 
        "field1" : "value1", 
        "field2" : "value2"
    }
}

How to get a HashMap (of type field : value) from it using only Google's GSON library?
Thank you very much in advance for your reply.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-02-22
@zolt85

First link on google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question