Project ID | 086680CD3A1F050280258935003E6DFD |
Version | 3 |
Class ID | 49E85D048B02698580258935004DC112 |
Class Type | Base |
Attributes |
suppressErrors (Get) As Boolean |
suppressErrors (Set) As Boolean |
fromJson(obj As JsonObject) As Variant |
fromJsonString(source As String, className As String, libName As String) As Variant |
getCustomConverter(labelName As String) As AbstractJsonConverter |
ignoreLabel(labelToIgnore As String) As JsonConversionHelper |
jsonArrayToObjects(array As JsonObject, className As String, libName As String) As Variant |
reset() As JsonConversionHelper |
shouldIgnoreLabel(labelName As String) As Boolean |
toJson(obj As Variant) As JsonObject |
toJsonString(obj As Variant, prettify As Boolean) As String |
toObject(source As JsonObject, className As String, libName As String) As JsonConversionHelper |
withArrayConverter(labelName As String) As JsonConversionHelper |
withCustomConstructor(constructor As JsonCustomConstructor) As JsonConversionHelper |
withCustomConverter(labelName As String, converter As AbstractJsonConverter) As JsonConversionHelper |
withObject(object As Variant) As JsonConversionHelper |
withScalarConverter(labelName As String) As JsonConversionHelper |
disableDebug() |
Delete() |
enableDebug() |
New() |
%REM
Converts a string of JSON to a Person object. The code is taken from the first deserialization example.
%REM
Dim json as String
Dim helper as New JsonConversionHelper()
Dim jd as Person
json = |{"firstName":"John","lastName":"Doe","age":42}|
Set jd = helper.fromJsonString(json, "Person", "deser-10")
Public Sub Delete() | ||||
---|---|---|---|---|
Destructor, outputs (if in debug) which functions have been logged as encountered and erases converters List. |
Copyright © HCL America, Inc. 1999, 2023. All Rights Reserved.