The pinned JSON object names two fields.

highlighted = computed this step

The toy parser reads two fields

The field rows show ok first and n second.

two fields parsed\text{two fields parsed}
JSON field splitThe body bytes, parsed JSON fields, and length check are recomputed from pinned POST bytes.JSON field split - POST /api JSON body 17 bytes, fields ok=true and n=3sectionnamevaluecheckrequest linemethodPOSTparsedrequest linepath/apiparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderContent-Typeapplication/jsonJSONheaderContent-Length17declared bytesbodydisplay wordsok true comma n threesafe display formbodyexact hex7b226f6b223a747275652c226e223a337dpinned bytesbodybyte length17countedfieldokok=trueparsedfieldnn=3parsedcheckContent-Length17declaredcheckbody bytes17recomputedcheckmatchyessame count

ok is true

The first field row is ok=true.

ok=true\text{ok}=\text{true}
JSON field splitThe body bytes, parsed JSON fields, and length check are recomputed from pinned POST bytes.JSON field split - POST /api JSON body 17 bytes, fields ok=true and n=3sectionnamevaluecheckrequest linemethodPOSTparsedrequest linepath/apiparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderContent-Typeapplication/jsonJSONheaderContent-Length17declared bytesbodydisplay wordsok true comma n threesafe display formbodyexact hex7b226f6b223a747275652c226e223a337dpinned bytesbodybyte length17countedfieldokok=trueparsedfieldnn=3parsedcheckContent-Length17declaredcheckbody bytes17recomputedcheckmatchyessame count

n has value three

The second field row has n value 3.

n=3\text{n}=3
JSON field splitThe body bytes, parsed JSON fields, and length check are recomputed from pinned POST bytes.JSON field split - POST /api JSON body 17 bytes, fields ok=true and n=3sectionnamevaluecheckrequest linemethodPOSTparsedrequest linepath/apiparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderContent-Typeapplication/jsonJSONheaderContent-Length17declared bytesbodydisplay wordsok true comma n threesafe display formbodyexact hex7b226f6b223a747275652c226e223a337dpinned bytesbodybyte length17countedfieldokok=trueparsedfieldnn=3parsedcheckContent-Length17declaredcheckbody bytes17recomputedcheckmatchyessame count

Summary

The pinned JSON object names two fields in deterministic order.

fields parsed\text{fields parsed}
JSON field splitThe body bytes, parsed JSON fields, and length check are recomputed from pinned POST bytes.JSON field split - POST /api JSON body 17 bytes, fields ok=true and n=3sectionnamevaluecheckrequest linemethodPOSTparsedrequest linepath/apiparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderContent-Typeapplication/jsonJSONheaderContent-Length17declared bytesbodydisplay wordsok true comma n threesafe display formbodyexact hex7b226f6b223a747275652c226e223a337dpinned bytesbodybyte length17countedfieldokok=trueparsedfieldnn=3parsedcheckContent-Length17declaredcheckbody bytes17recomputedcheckmatchyessame count