We back ported things like GetChildNode, GetNextNode and GetPreviousNode, but those are not very efficient and you may want to move to using iterators, query values/entries/keys arrays or access items by index. We can convert integer, boolean, string, double, arrays, dictionaries to JSON internally.Īnd convert back to variant containing integer, boolean, string, double, arrays and dictionaries. Prefers case sensitive, but can optionally do case insensitive. Preserves the order of object entries and allows explicit sorting.Ĭan convert to HTML for displaying itself. Has a lot of duplicate method/property names for API 1 and 2 compatibility and you can choose whether you prefer Append vs Add, Insert vs. Handles currency better and preserves digits. Is almost compatible to the old JSONMBS class from beforeĪutomatically converts between variant and JSONMBS as needed.Ĭan query, search and replace JSON values with JSON Paths.Ĭan create patches and merge them back with two ways.Ĭan convert from JSON to/from dictionaries and arrays.
Supports Xojo features like for-each loops with iterators O.AddItemToObject 'World', JSONMBS.NewNumberNode( 2) O.AddItemToObject 'Hello', JSONMBS.NewNumberNode( 1) The class for JSON object parsing and creating.Įxample dim o as JSONMBS = JSONMBS.NewObjectNode