THPDFJSONValue.Serialize
Serialises this value to UTF-8 JSON text
function Serialize: AnsiString;
The unit is HPDFDocJobs; strings are emitted as UTF-8 with JSON escaping, and numbers use the shortest exact form that round-trips
The result is allocated without a size bound, so untrusted trees should use SerializeBounded, which raises EHPDFJobBudgetExceeded rather than over-allocating
THPDFJSONKind values determine which literal, string, number, object or array form is written