Glad you made it work...
But by the way: nothing requires you to have the JSON data format you described above. It all depends on the reader extracting the data from the JSON response. Your response format must match the format the reader requires - that's the only constraint. But it's absolutely OK to modify the reader in your case (if the data is used somewhere else as well).