JsonPointer

Undocumented in source.

Constructors

this
this(string path)

Constructor from string @throws Exception if error in path

this
this(string[] path)

Constructor from array of components @throws Exception if error in path

Members

Functions

evaluate
Nullable!(JSONValue*) evaluate(JSONValue root)

find element in given document according to path

evaluate
Nullable!(JSONValue*) evaluate(JSONValue* root)

find element in given document according to path

toString
string toString()

Convert path to string

Properties

isRoot
bool isRoot [@property getter]

Return true for empty path

lastComponent
string lastComponent [@property getter]

Get last component of path

parent
Nullable!JsonPointer parent [@property getter]

Get path for parent element

Static functions

encodeComponent
encodeComponent(string component)

encode path component, quoting '~' and '/' symbols according to rfc6901

Variables

path
string[] path;
Undocumented in source.

Meta