← Standard library

JsonKind

enum JsonKind extends int32
import JsonKind from Wax;

JSON representation kinds. Int32, Int64, Float, and Double are all numeric, while Null, Boolean, String, Object, and Array identify their corresponding JSON categories.

Json.wax:1014

Members

Nullcase

case Null = 0

Json.wax:1015

Booleancase

case Boolean = 3

Json.wax:1016

Int32case

case Int32 = 4

Json.wax:1017

Int64case

case Int64 = 5

Json.wax:1018

Floatcase

case Float = 6

Json.wax:1019

Doublecase

case Double = 7

Json.wax:1020

Stringcase

case String = 8

Json.wax:1021

Objectcase

case Object = 9

Json.wax:1022

Arraycase

case Array = 10

Json.wax:1023

IsNumbermethod

public fn IsNumber() : bool

Tests for Int32, Int64, Float, or Double.

Json.wax:1030

CompareTomethod

public fn CompareTo(JsonKind other) : int32

Provided by the compiler.

Equalsmethod

public fn Equals(JsonKind other) : bool

Provided by the compiler.

GetHashCodemethod

public fn GetHashCode() : uint32

Provided by the compiler.

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.