JsonValueAsString Property

Gets the string value of this JsonValue instance if it has String Type; or , if its Type is not String.


Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public string AsString { get; }

Property Value



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