Represents a string identifier, designed for accessing properties by name.
A variant class, that can be used to hold a range of primitive values.
A mini namespace to hold utility functions for working with juce::vars.
JSONUtils()=delete
No constructor.
static std::optional< var > setPointer(const var &v, String pointer, const var &newValue)
Given a JSON array/object 'v', a string representing a JSON pointer, and a new property value 'newVal...
static bool deepEqual(const var &a, const var &b)
Returns true if and only if the contents of a match the contents of b.
static var makeObject(const std::map< Identifier, var > &source)
Converts the provided key/value pairs into a JSON object.
static var makeObjectWithKeyFirst(const std::map< Identifier, var > &source, Identifier key)
Converts the provided key/value pairs into a JSON object with the provided key at the first position ...