-
Notifications
You must be signed in to change notification settings - Fork 0
Class List
Rob edited this page Aug 4, 2026
·
18 revisions
This namespace contains the Quick JSON parser
| Classes | |
|---|---|
| JArray | JSON Array object, holding a ordered list of JTokens |
| JObject | JSON Object, holding a list of JSON JTokens referenced by property names |
| JsonAlwaysCreate | Attach to a member of a class to indicate that it must be made, and must not be null Default constructor will be called if required Applicable to ToObject. |
| JsonCustomArrayLength | Attach to a member of a class to indicate a custom minimum length of an array. If the data is longer, the array will be longer Applicable to ToObject |
| JsonCustomFormat | Attach to a member of a class to indicate a custom output/input call is needed for the whole element. Applicable to FromObject and ToObject Must supply a customformat callback to both From and To object if used. |
| JsonCustomFormatArray | Attach to a member of a class to indicate a custom output/input call is needed for each array, list or dictionary element, not for the object itself Applicable to FromObject and ToObject Must supply a customformat callback to both From and To object if used. |
| JSONFormatter | Quick formatter using Fluent syntax, quick and easy way to make a JSON string |
| JSONFormatterStreamer | Using Fluent syntax stream tokens to a stream, quick and easy way to make a JSON file without needing to hold the whole structure in memory |
| JsonIgnoreAttribute | Ignore attribute. Attach to an member of a class to say don't serialise this item or to exclude certain members or to only include specific members Applicable to FromObject and ToObject |
| JsonIgnoreIfNullAttribute | Attach to a member to indicate if the value of it is null, don't add it to JSON. Applicable to FromObject only |
| JsonNameAttribute | Name attribute. Attach to an member of a class to indicate an alternate name to use in the JSON structure from its c# name. Applicable to FromObject and ToObject. ToObject supports multiple names (any name in JSON will match this entry), FromObject only one and uses the first entry if multiple is given |
| JSONSchema | JSchema is a static class holding experimental schema decoders Implements 2022-12 https://json-schema.org/specification Except If/then/else Except format (accepted but not checked) |
| JToken | JToken is the base type of all JSON Tokens. JObject and JArray are derived from this Provides Parsers and Decoders for all JSON properties |
| JTokenExtensions | Extensions which extends QuickJSON with the ability to create c# objects from JTokens An JToken can be converted to a c# object if (in order) its: * It has [JsonCustomFormat] or [JsonCustomFormatArray] marked on it making it convertable using customconverter callback * Or the class has a constructor taking a JToken - class-constructor(JToken) * A simple c# value type * Or it is an enumeration or DateTime and you've defined process callback which allows for custom processing of these strings to enumeration/datetime * Or it is an enumeration or DateTime Can convert JArrays to classes implementing IEnumeration such as Lists/Arrays/Hashsets Can convert JObjects to dictionaries. For dictionaries, the key must be either: * a string * an enumeration or DateTime * an enumeration or DateTime which is passed thru process callback to convert to a enumeration/DateTime * A class having a constructor taking a single string parameter * A class implementing IConvertible which can convert a string to it (such as DateTime) |
| JTokenExtensionsGet | Extension class helpers for converting a JToken safely to a c# class. Null may be passed as the JToken and it will return the default given in the converter ie. token["propertyname"].Str("default") works safely even if propertyname does not exist. |
| JTokenExtensionsGetSet | Extra helpers for getting and setting |
| JTokenExtensionsOther | Extension class helpers for JTokens include renames, parse string, write and read from file |
This namespace contains the Quick JSON Utilities
| Classes | |
|---|---|
| Extensions | Extension class helpers for JSON system. |
| StringParserQuick | String Parser Quick for JSON system. |
| StringParserQuickTextReader | Text Reader Parser Quick for JSON system. |
| Interfaces | |
|---|---|
| IStringParserQuick | Interface for parsers for QuickJSON |