Fix support for custom root in JSON-API adapter
Merge pull request #689 from ride/fix-json-api-custom-root

Fix support for custom root in JSON-API adapter