THPDFJSONValue.Serialize

Serializes 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 round-trip form

The result is allocated without a size bound, so untrusted trees should use SerializeBounded, which raises EHPDFJobBudgetExceeded instead of over-allocating

THPDFJSONKind values drive which literal, string, number, object, or array form is written