Look. I don't _love_ JSON, but if you're gonna build a JSON API, be consider using JSON:API formatting. http://jsonapi.org