Method ToJson
ToJson()
Serializes this collection into a flat JSON object string, mapping each metadata key to its string value. This is the inverse of FromJson(string).
public string ToJson()
Returns
- string
A JSON object string of the form
{"key":"value",...}.