uDataData to serialize.
AdvPL GuideFWJsonSerialize(uData, [lClassName], [lUTC]) --> cJsonSerializes legacy data as JSON.
Deprecated legacy function; TOTVS recommends JsonObject. It serializes AdvPL data to JSON text. Extra arguments control class names and date treatment; not every combination guarantees round-trip types. The example uses a simple integer array without dates, objects or credentials. Serialized output must exclude internal data unintended for consumers. (Sources: refs. 1–1.)
FWJsonSerialize(uData, [lClassName], [lUTC]) --> cJsonuDataData to serialize.
lClassNameIncludes class name when applicable.
lUTCControls UTC date formatting under the page contract.
JSON text.
#Include "Protheus.ch"
User Function Ed433()
// Fictional array without sensitive fields.
ConOut(FWJsonSerialize({1,2}))
Return NilJSON array equivalent to [1,2]; serialization whitespace may vary. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.