JSONWriter.WriteValue
Syntax:
Parameters:
<Value> (required)
The written value.
<UseFormatWithExponent> (optional)
The usage of the exponent form of record for the numerical values. The parameter is only reasonable if a numerical type of value is recorded.
Default value: False.
Description:
Availability:
Example:
JSONWriter = New JSONWriter; // Writing the JSON document // Writing the string value JSONWriter.WritePropertyName("String"); JSONWriter.WriteValue("String number"); // Writing the number value JSONWriter.WritePropertyName("Number"); JSONWriter.WriteValue(123); // Writing the floating point value // in scientific notafic notation JSONWriter.WritePropertyName("NumberInScientificNotation"); JSONWriter.WriteValue(123.45); // Writing the boolean value JSONWriter.WritePropertyName("Boolean"); JSONWriter.WriteValue(True); // Writing the Undefined value JSONWriter.WritePropertyName("Undefined"); JSONWriter.WriteValue(Undefined); |