I need to produce a JSON with many objects inside, and each of them to have an array of strings. I'm using Java, more specifically Android.
I want to produce something like the following:
"manager1": [
{"product1":"xxxx"},
{"product2":"yyyy"},
{"product3":"zzzz"}
],
"manager2": [
{"product1":"xxxx"},
{"product2":"yyyy"},
{"product3":"zzzz"}
]
I have a Bean class which has this manager and array of products information, am just having trouble to see how that would fit inside my AsyncTask class