Shashank Sabniveesu

Contributing JSONUtils.getExpandedJSON() to org.json on Github

Suppose we have a JSONObject with arrays inside

Initial JSONObject

To split(expand) it into a List of JSONObjects where each is in its simplest model {key: value}, you may use

JSONUtils.getExpandedJSON()

Note that non-array elements get copied as-is

Reference Implementation: Pull Request 585