In iOS if I have arrays and maps nested, I can call NSJSONSerialization.dataWithJSONObject method, and it will render it to a JSON string. For map, or NSDictionary I can use the setValueForKey method, for array, or NSArray I can use add method to populate with data. How is it possible in Android?
Is this approach works in Android? Does appropriate methods exist in Android?
NSJSONSerialization.dataWithJSONObjectsetValueForKeyadd