Question : Java Read JSON inforamtion

I know of some JSON libs around and I'm currently looking into Google-JSON but all I want to achieve is something simple and I want to know what you would suggest.

I want a JSON library which will let me read a textfile that is in JSON and let me convert it into strings, int, boolean, etc.

For example, take this JSON:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
    {   "name": "map_one.txt",
    	"title": "Map One",
    	"currentMap": 4.
    	"items": [	
    		 { name: 'Pickaxe', x: 5, y: 1 },
    		 { name: 'Battleaxe', x: 2, y: 3 }
    		 ],
    	"map": [ { 1,3,1,1,1,24,1,1,1,1,1,1,1 },
      	{ 1,3,1,1,1,24,1,1,1,1,1,1,1 },
      	{ 1,7,1,1,1,24,1,1,24,1,1,1,1 },
      	{ 1,7,1,1,7,1,1,1,24,1,1,1,1 },
      	{ 1,7,7,7,1,24,24,24,24,1,1,1,1 },
      	{ 1,1,7,1,1,24,1,24,1,1,1,1,1 },
      	{ 1,1,1,1,1,24,1,1,1,1,1,1,1 },
      	{ 1,1,3,1,1,24,1,1,1,1,1,1,1 },
      	{ 1,3,3,1,1,24,1,1,1,1,1,1,1 }}
    }


I want to be able to take the title "Map One" and grab and convert it into a String and grab the currentMap and convert it into a integer.

So... which JSON/Java Library do you recommend?

Answer : Java Read JSON inforamtion

your catalog.Engine is trying to open a port. 50000 range is too high.
Try changing it to 4000
Random Solutions  
 
programming4us programming4us