MarshalJSON methods need to return JSON encodable bytes if there is an empty response or the JSON encoder errors out.
--- FAIL: TestRawQueryGroupBy (17.83s)
raw_query_groupby_test.go:46:
Error Trace: raw_query_groupby_test.go:46
Error: Received unexpected error:
received '500' status code: {"state":"Error","error":"json: error calling MarshalJSON for type *query.GroupedResults: unexpected end of JSON input"}
Test: TestRawQueryGroupBy
MarshalJSON
methods need to return JSON encodable bytes if there is an empty response or the JSON encoder errors out.