serializeJson
Signatures
serializeJson(input: T, options: JsonSerializeOptions): string
Serializes the given data to a JSON string. By default the JSON string is formatted with a 2 space indentation to be easy readable.
Parameters
- input:
T
- Object which should be serialized to JSON - options:
JsonSerializeOptions
- JSON serialize options