served.lsp.jsonops

Undocumented in source.

Members

Functions

deserializeJson
T deserializeJson(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeJsonStringContent
const(inout(char))[] escapeJsonStringContent(inout(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
fromJSON
deprecated T fromJSON(StdJSONValue value)
Undocumented in source. Be warned that the author may not have intended to support it.
isEmptyJsonObject
bool isEmptyJsonObject(const(char)[] jsonString)
Undocumented in source. Be warned that the author may not have intended to support it.
isValidJsonStringContent
bool isValidJsonStringContent(const(char)[] jsonString)
Undocumented in source. Be warned that the author may not have intended to support it.
jsonValueTo
T jsonValueTo(JsonValue value)
Undocumented in source. Be warned that the author may not have intended to support it.
looksLikeJsonArray
bool looksLikeJsonArray(const(char)[] jsonString)
Undocumented in source. Be warned that the author may not have intended to support it.
looksLikeJsonObject
bool looksLikeJsonObject(const(char)[] jsonString)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeJson
string serializeJson(T value)

JSON serialization function.

toJSON
deprecated StdJSONValue toJSON(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
toJsonValue
JsonValue toJsonValue(StdJSONValue value)
Undocumented in source. Be warned that the author may not have intended to support it.
toJsonValue
JsonValue toJsonValue(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
toStdJSONValue
StdJSONValue toStdJSONValue(JsonValue value)
Undocumented in source. Be warned that the author may not have intended to support it.
visitJsonArray
void visitJsonArray(T[] jsonArray)
Undocumented in source. Be warned that the author may not have intended to support it.

Imports

JsonValue (from mir.algebraic_alias.json)
public import mir.algebraic_alias.json : JsonValue = JsonAlgebraic, StringMap;
Undocumented in source.
StringMap (from mir.algebraic_alias.json)
public import mir.algebraic_alias.json : JsonValue = JsonAlgebraic, StringMap;
Undocumented in source.

Structs

RootJsonToken
struct RootJsonToken

Type that can be used to pass JSON as-is, without (de)serialization. Only works at root level, e.g. can't be nested inside (de)serialized types.

Templates

parseKeySlices
template parseKeySlices(fields...)

Split the json object into keys, store the slices from the input string into a newly created struct which contains all the keys from the fields parameter.

Meta