Keep an Airnode response as its original text until its attestation has been checked. Parsing the response into a JSON value and writing it back out can change the representation, even when an application treats the value as equivalent.
The current attestation documentation, checked on November 11, defines the signed response input as UTF-8 text. The digest combines that text with the request hash and signing timestamp. A verifier therefore needs the received string, rather than a replacement produced by its own JSON serializer.
The outer object and the inner response
For an envelope response from POST /, data is a string inside the outer JSON object. Reading that outer object is different from parsing and rewriting the JSON contained inside data. Preserve the resulting data string for verification; parse a separate value when the application needs to inspect its fields.
The documentation illustrates the distinction with 0.00000071234 and 7.1234e-7. They express the same numeric value, but their text differs. It also explains why retaining the text preserves digits in integers beyond 2^53. These are documented representation examples, not results from a test performed against a listing.
Passthrough puts the text elsewhere
With the documented passthrough interface, the response body supplies that text. The signing address, request hash, timestamp and signature travel in X-Airnode-* headers. Reading the body as text before interpreting its contents preserves the input described by the verification procedure. Passthrough exposes only declared routes.
This describes the current string-based format. The attestation document separately specifies a JSON.stringify(data) fallback for non-string data signed by Airnodes before version 0.2.0; clients should distinguish those formats rather than treat every response as the newer one.
A request using x-airnode-sign=false is unsigned. Where a signature is present, its signer is the Airnode operator, which may be a third-party relay rather than the upstream provider. Checking an attestation does not establish factual accuracy, provider endorsement or investment safety.