KGy SOFT

JsonValueAsString Property

KGy SOFT JSON Libraries Help
Gets the string value of this JsonValue instance if it has String Type; or , if its Type is not String.
See the Remarks section for details.

Namespace:  KGySoft.Json
Assembly:  KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.1
Syntax

public string AsString { get; }

Property Value

Type: String
Remarks

This property returns if this JsonValue represents a non-string primitive JavaScript literal. For non-string primitive types you can use the AsLiteral property to get their literal value.

This property gets the string value without quotes and escapes. To return it as a parseable JSON string, use the ToString method overloads instead.

See Also

Reference