Color scheme: Light
You are here: start » en » Documentation » Microsoft Access development tools » WKL Office JSON » WKL Office JSON API reference » Enumerations

Enumerations

JNodeType enumeration

Signature

Enum JNodeType
    jntObject = 1
    jntArray = 2
    jntString = 3
    jntNumber = 4
    jntBoolean = 5
    jntNull = 6
End Enum

Summary

The kind of a JSON node.

Parameters

ConstantValueDescription
jntObject1A JSON object { ... } (`JElement`).
jntArray2A JSON array [ ... ] (`JArray`).
jntString3A string (`JValue`).
jntNumber4A number (`JValue`).
jntBoolean5true or false (`JValue`).
jntNull6null (`JValue`).

Remarks

None

Code example

None

Inheritance

None

JDateZone enumeration

Signature

Enum JDateZone
    jdzLocal = 0
    jdzUtc = 1
    jdzAsWritten = 2
End Enum

Summary

How times with a zone are read into a VBA Date.

Parameters

ConstantValueDescription
jdzLocal0Converted to local time, as Now() shows it (default).
jdzUtc1Converted to UTC.
jdzAsWritten2The zone is ignored; date and time stay as written.

Remarks

None

Code example

None

Inheritance

None

JErrorCode enumeration

Signature

Enum JErrorCode
    jeParseError = &H80040201
    jePathSyntax = &H80040202
    jeNotFound = &H80040203
    jeTypeMismatch = &H80040204
    jeInvalidOperation = &H80040205
    jeIndexOutOfRange = &H80040206
    jeFileError = &H80040207
    jeUnsupportedValue = &H80040208
End Enum

Summary

The error numbers of WKL Office JSON, as Err.Number shows them.

Parameters

ConstantValueDescription
jeParseError&H80040201The JSON text is invalid (vbObjectError + 513). Reported in ParseError.ErrorCode by LoadJson and Load; raised by a getter without default on a document whose last load failed.
jePathSyntax&H80040202The JPath expression is invalid (vbObjectError + 514).
jeNotFound&H80040203The path or key does not exist (vbObjectError + 515).
jeTypeMismatch&H80040204The value cannot be converted to the requested type (vbObjectError + 516).
jeInvalidOperation&H80040205The operation is not possible for this kind of node (vbObjectError + 517).
jeIndexOutOfRange&H80040206The position is outside the array (vbObjectError + 518).
jeFileError&H80040207The file cannot be read or written (vbObjectError + 519). Reported in ParseError by Load; raised by Save, and by a getter without default after a failed Load.
jeUnsupportedValue&H80040208The value has no JSON form (vbObjectError + 520).

Remarks

The numbers are FACILITY_ITF values in the range Microsoft reserves for component-defined errors, so they never collide with system errors. Err.Source is WklJSON; Err.Description names the path or position.

Code example

None

Inheritance

None

en/wiki/msaccess/json/api-reference/enumerations.txt · Last modified: by Wolfgang van der Stille