Skip to content

JSON class

namespace: Serenity   assemblySerenity.Net.Core

Contains shortcuts to JSON serialization and deserialization methods, along with the default Serenity settings.

public static class JSON

Public Members

name description
static Parse(…) Deserializes a JSON string to an object
static Parse<T>(…) Deserializes a JSON string to an object
static ParseTolerant(…) Deserializes a JSON string to an object, using more tolerant settings
static ParseTolerant<T>(…) Deserializes a JSON string to an object, using more tolerant settings.
static PopulateObject<T>(…) Tries to populate an existing object similar to JsonConvert's PopulateObject
static Stringify(…) Converts object to its JSON representation (2 methods)
static StringifyIndented(…) Converts object to its JSON representation
static ToJson(…) Converts an object to its JSON representation (extension method for Stringify)
static class Defaults Contains default options for System.Text.Json serialization

See Also