Convert JSON String to Java Object or HashMap
- by Priyank
Hi.
I am writing an android app. I want to pass some data across the intents/activities and I feel that a conversion to and from JSON is probably a more optimal way at this point. I am able to convert a java hashmap to a json string successfully using JSONObject support.
However i need to convert back this JSON string to a java object or a hashmap. What is the best way to go about it.
Is parcelable really a change worth doing; if I have simple 5 field object? What are the other ways to transfer data between intents.
Cheers