narayana1208 / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

convert JSON to Map #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.just run the TestJson.

What is the expected output? What do you see instead?
error.

What version of the product are you using? On what operating system?
1.4

Please provide any additional information below.
I have used the json string created by Gson.toJson to recreate the values fo 
TestJson.
Please refer attached file

Original issue reported on code.google.com by usp...@gmail.com on 11 Feb 2010 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago
You cannot use raw types with GSON. Change line 8 of your program to the 
following and you'll be fine:
    public HashMap<String, String> MM = new HashMap<String, String>();

Original comment by limpbizkit on 28 Aug 2010 at 5:42