Skip to content

Package io.github.qishr.cascara.lang.json.util

Class JsonOptions

java.lang.Object
        io.github.qishr.cascara.common.lang.util.LanguageOptions<io.github.qishr.cascara.lang.json.util.JsonOptions>
                io.github.qishr.cascara.lang.json.util.JsonOptions

All Implemented Interfaces:
    Duplicable<JsonOptions>

Direct Known Subtypes:
    ImmutableJsonOptions


public class JsonOptions
extends LanguageOptions<JsonOptions>

Nested Class Summary

Modifier and Type Class Description
public static io.github.qishr.cascara.lang.json.util.JsonOptions.ImmutableJsonOptions

Field Summary

Modifier and Type Field Description
public static final io.github.qishr.cascara.lang.json.util.@io.github.qishr.cascara.common.lang.annotation.Experimental JsonOptions JSON5
public static final JsonOptions STRICT

Constructor Summary

Constructor Description
JsonOptions()
JsonOptions(JsonOptions original)

Method Summary

Modifier and Type Method Description
public boolean allowComments()
public boolean allowHexadecimalNumbers()
public boolean allowJson5Numbers()
public boolean allowSingleQuotedStrings()
public boolean allowTrailingComma()
public boolean allowUnicode()
public boolean allowUnquotedKeys()
public boolean captureComments()
public boolean insertSpaces()
public boolean prettyPrint()
public boolean useSimd()
public boolean validateUnicode()
public boolean trackPosition()
public int getDepthLimit()
public JsonOptions setDepthLimit(int limit)
public JsonOptions setAllowBooleanKeys(boolean val)
public JsonOptions setAllowComments(boolean val)
public JsonOptions setAllowHexadecimalNumbers(boolean val)
public JsonOptions setAllowJson5Numbers(boolean val)
public JsonOptions setAllowSingleQuotedStrings(boolean val)
public JsonOptions setAllowTrailingComma(boolean val)
public JsonOptions setAllowUnicode(boolean val) Sets whether unicode characters are allowed in scalars.
public JsonOptions setAllowUnquotedKeys(boolean val)
public JsonOptions setCaptureComments(boolean val)
public JsonOptions setInsertSpaces(boolean val) Sets whether to use spaces or tabs for indentation.
public JsonOptions setPrettyPrint(boolean v)
public JsonOptions setUseSimd(boolean v)
public JsonOptions setValidateUnicode(boolean v)
public JsonOptions setTrackPosition(boolean v)
public JsonOptions duplicate()

Methods inherited from LanguageOptions

setIndentSize, getIndentSize

Field Details

JSON5

@io.github.qishr.cascara.common.lang.annotation.Experimental
public static final io.github.qishr.cascara.lang.json.util.@io.github.qishr.cascara.common.lang.annotation.Experimental JsonOptions JSON5


STRICT

public static final JsonOptions STRICT


Method Details

allowComments

public boolean allowComments()


allowHexadecimalNumbers

public boolean allowHexadecimalNumbers()


allowJson5Numbers

public boolean allowJson5Numbers()


allowSingleQuotedStrings

public boolean allowSingleQuotedStrings()


allowTrailingComma

public boolean allowTrailingComma()


allowUnicode

public boolean allowUnicode()


allowUnquotedKeys

public boolean allowUnquotedKeys()


captureComments

public boolean captureComments()


insertSpaces

public boolean insertSpaces()


prettyPrint

public boolean prettyPrint()


useSimd

public boolean useSimd()


validateUnicode

public boolean validateUnicode()


trackPosition

public boolean trackPosition()


getDepthLimit

public int getDepthLimit()


setDepthLimit

public JsonOptions setDepthLimit(int limit)


setAllowBooleanKeys

public JsonOptions setAllowBooleanKeys(boolean val)


setAllowComments

public JsonOptions setAllowComments(boolean val)


setAllowHexadecimalNumbers

public JsonOptions setAllowHexadecimalNumbers(boolean val)


setAllowJson5Numbers

public JsonOptions setAllowJson5Numbers(boolean val)


setAllowSingleQuotedStrings

public JsonOptions setAllowSingleQuotedStrings(boolean val)


setAllowTrailingComma

public JsonOptions setAllowTrailingComma(boolean val)


setAllowUnicode

public JsonOptions setAllowUnicode(boolean val)

Sets whether unicode characters are allowed in scalars.


setAllowUnquotedKeys

public JsonOptions setAllowUnquotedKeys(boolean val)


setCaptureComments

public JsonOptions setCaptureComments(boolean val)


setInsertSpaces

public JsonOptions setInsertSpaces(boolean val)

Sets whether to use spaces or tabs for indentation.


setPrettyPrint

public JsonOptions setPrettyPrint(boolean v)


setUseSimd

public JsonOptions setUseSimd(boolean v)


setValidateUnicode

public JsonOptions setValidateUnicode(boolean v)


setTrackPosition

public JsonOptions setTrackPosition(boolean v)


duplicate

public JsonOptions duplicate()

Specified By:

Duplicable