05-13-2014 05:39 AM
05-13-2014 10:50 AM - edited 05-14-2014 04:22 AM
Sorry this request doesn't make sense to me.
Can you explain to us why you need to know the data type for an element of a JSON response, when you are not going to process that JSON response with a JSON library?
Perhaps you could explain what you are trying to do rather than just asking us how to do it - I suspect we have some alternative suggestions to the way you are suggesting. .
But from the information presented so far, the answer to your question,
"how do you get the element data type without a JSON library?"
"you get a JSON Library".
Edit: Just to say, in fact I misread the question, I had not understood that the poster was trying to 'type' the data using the JSON response. I know that is what the question asked, but I didn't think that was what the OP actually wanted, since there is no typing in JSON. Apologies. See Simon's answer to that question later.
05-14-2014 02:42 AM
05-14-2014 03:44 AM
05-14-2014 03:53 AM
Thank you for your reply. And I got the backend response format is JSON . Then I need to store the elements to Sqlite DB .
1) I need to get the service documents
2) Is it possible to get the metadata???
3) I need to sync . Am getting value from backend . But I dono the columns data type .
05-14-2014 03:58 AM