varToJSONStandard Function
This method is deprecated. Use json_generate() instead.
Syntax
varToJSONStandard(var as A [,flagSpecialTags as L[,flagCondense as L [,indent as C [,flagQuotesOnPropNames as L [,jQueryFormat as L [,flagHonorNulls as L [,opsIn as A]]]]]]])
Arguments
- varPointer
The variable to convert into a standard JSON object.
- flagSpecialTagsLogical
Default is .f.
- flagCondenseLogical
Default is .f.
- intentCharacter
Default is ""
- flagQuotesOnPropNamesLogical
Default is .t.
- jQueryFormatLogical
Default is .t.
- flagHonorNullsLogical
Default is .t.
- opsInAny Type
Default is null_value()
Description
Converts an Xbasic variable to a JSON representation. If flagSpecialTags is .t. then you can use {function} and optional {functionArguments:var1,var2} in a property value to encode as a function. You can also use {Javascript} for arbitrary Javascript.
See Also