Interface IFastJsonSerializeOptions
- All Superinterfaces:
Serializable
Options for the
IFastJsonConverter.toJsonString(Object, IFastJsonSerializeOptions).- Since:
- 7.0.10
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IFastJsonSerializeOptionsThe default serialization options.static final IFastJsonSerializeOptionsSerialization options for embedding the JSON within an HTML script tag. -
Method Summary
-
Field Details
-
DEFAULT
The default serialization options.isEscapeForHtmlScriptTag()is set tofalse. -
ESCAPE_FOR_HTML_SCRIPT_TAG
Serialization options for embedding the JSON within an HTML script tag.isEscapeForHtmlScriptTag()is set totrue.
-
-
Method Details
-
isEscapeForHtmlScriptTag
boolean isEscapeForHtmlScriptTag()- Returns:
- When
true, ensures the JSON can be used within a<script></script>tag. The script tag requires that the literal text</scriptcannot occur anywhere, not even as a quoted JSON string.
-