Reference
INVALID_JSON
The body is not valid JSON
The body is not valid JSON
HTTP status 400 Bad Request, code INVALID_JSON.
What it means#
The request declared a JSON body that could not be parsed. Nothing about the operation itself has been checked yet.
What to do#
Serialise the body with a JSON encoder rather than by hand, send Content-Type: application/json, and make sure nothing truncates or double-encodes it on the way.
On the wire#
Every error response carrying this code names this page in error.moreInfo,
with the request id in the query string. See Error codes for
the response shape and the list of every code.