What format and encoding rules apply to OpenRTB payloads?

Answer

OpenRTB payloads are JSON sent over HTTP POST with Content-Type application/json, and the response must use the same representation as the request. Standard JSON rules apply: no comments, no trailing commas, string keys in double quotes; hand-edited requests with comment lines are a frequent cause of HTTP 400 rejections. The spec gives the absence of an attribute formal meaning, usually that the value is unknown, so omit fields rather than sending null. Exchanges may agree on binary alternatives like Protobuf or Avro with an appropriate Content-Type, and gzip compression is a documented best practice.

Go deeper

More questions on openrtb basics and the bid request

All 93 questions are listed in the OpenRTB FAQ.