-2

How to get latitude and longitude object. please help

{

"category":[
    {
        "name":"Judging_Point",
        "title":"",
        "iconimg":"33.png",
        "count":0,
        "content":""
    },
    {
        "name":"Street_Trading_Stalls",
        "title":"Street Trading Stalls",
        "iconimg":"34.png",
        "count":0,
        "content":""
    },
    {
        "name":"static_sound_systems",
        "title":"Sound Systems",
        "count":29,
        "iconimg":"24.png",
        "content":[
            {
                "latitude":"51.52603767293402",
                "longitude":" -0.2136941301305184",
                "title":"4 Play",

}, { "latitude":"51.52603767293402", "longitude":" -0.2136941301305184", "title":"4 Play", },

2 Answers2

0

One option would be to use JSONSimple with is a Java JSON lib. Android may contain a json lib allready but i like json simple because its simple:)

Just create a Parser object and read the String.

Then create a JSONObject by getting the "category" and so on

user264230
  • 630
  • 3
  • 7
  • 19
-1

@user3796430 Try integrating GSON library. It will definitely help you...

Developer
  • 173
  • 6