Use the REST API directly to return JSON objects