Convert JSON object with embedded sub-objects into a JSON-API response object