Extract JSON data on Android received by DataSnap

0

I've never worked with datasnap I do not know how to extract! Someone can help me, I leave the code I have:

DSRESTConnection conn = new DSRESTConnection();
conn.setHost("54.207.112.131");
conn.setPort(8787);     
conn.setProtocol("http");       

Tdsm proxy = new Tdsm(conn);
try {
 TJSONObject objJSON = (TJSONObject) proxy.getVendedor("");
    } catch (DBXException e) {
        e.printStackTrace();
        ControllerSFAndroid.getInstancia().showMensagemSimples("jSON: " + e);
    }

The variable objJSON gets this value from proxy.getVendedor("") :

{"result":[{"type":"Data.FireDACJSONReflect.TFDJSONDataSets","id":1,"fields":{"FDataSets":{"type":"System.JSON.TJSONObject","id":2,"fields":{"FMembers":[{"type":"System.JSON.TJSONPair","id":3,"fields":{"FJsonString":{"type":"System.JSON.TJSONString","id":4,"fields":{"FStrBuffer":{"type":"System.SysUtils.TStringBuilder","id":5,"fields":{"FData":"SQL_vendedor","FLength":12,"FMaxCapacity":2147483647}},"FOwned":true}},"FJsonValue":{"type":"System.JSON.TJSONString","id":6,"fields":{"FStrBuffer":{"type":"System.SysUtils.TStringBuilder","id":7,"fields":{"FData":"eJy9WF1T20YUPUrQJgGiOIQQEiilaZp+PHQmyUzfhe2ktLgQZNpMXjoucQgzxGZs0wz977V69q5k\r\nraQF2hmpMDKrc+\/uOfdjVzJhayu6A3Xr7yUghgcvvhZfn8MqgAivsYPf8Sf6GOAdP99hiBF8NGgt\r\nooqTgRvQPzeBW3jOQTwfL8xhnqMQL7jUNlqcnr83E29jEYFY7sBrwLsLbwnePcT8WZbP+\/BW4D2A\r\ntwrvIZ7S8z16GGMyk6Lvvi8Je1TgW5P7qRYWcNBGB3vY59+ITr4DU7gmAtfxmSVwQwRS1Oei6z+L\r\nKvNsZsIWOXhJtTu8Qn76JUTheg2iiiwFSSaJTexKGYuIwtxM0vNKJdksm7K2SFqamX6RJLZwgLcU\r\n5sYVLdXLc3NZIhs5\/R0mNkp2UBFV\/NUCv2BvLHD0WPquGpkuvjVh+VJYClIjqX6Lrr4TVb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+lMxuyeksspirztB1yjh6vFOakuN0Fz\/ADTwdXx6Ud1ODGOuasTzMk4P4YWversl9ORKmJ\r\nOrWsF\/bVT4megSgJcjUY4x8\/c\/rE","FLength":1588,"FMaxCapacity":2147483647}},"FOwned":true}},"FOwned":true}}],"FOwned":true}}}}]}
    
asked by anonymous 10.12.2015 / 20:21

0 answers