Platforms to show: All Mac Windows Linux Cross-Platform
JSONMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | JavaScript Object Notation | MBS Util Plugin | 13.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as JSONMBS = JSONMBS.NewObjectNode
o.AddItemToObject "Hello", JSONMBS.NewNumberNode(1)
o.AddItemToObject "World", JSONMBS.NewNumberNode(2)
MsgBox o.toString
- 24 properties
- property ArraySize as Integer
- property ChildNode as JSONMBS
- property Handle as Integer
- property IsArray as Boolean
- property IsBoolean as Boolean
- property IsInt64 as Boolean
- property IsNull as Boolean
- property IsNumber as Boolean
- property IsObject as Boolean
- property LastChildNode as JSONMBS
- property Name as String
- property NextNode as JSONMBS
- property ParseError as String
- property PreviousNode as JSONMBS
- property Root as JSONMBS
- property Text as String
- property toString as String
- property Type as Integer
- property TypeName as String
- property Valid as Boolean
- property ValueBoolean as Boolean
- property ValueDouble as Double
- property ValueInteger as Int64
- property ValueString as String
- 23 methods
- method AddItemToArray(item as JSONMBS)
- method AddItemToObject(label as string, value as JSONMBS)
- method AddOrReplaceItemToObject(label as string, value as JSONMBS)
- method ArrayItem(index as integer, Clone as Boolean = false) as JSONMBS
- method ArrayItems(Clone as Boolean = false) as JSONMBS()
- method Child(label as string) as JSONMBS
- method Clone as JSONMBS
- method Close
- method Constructor
- method Constructor(text as string)
- method Convert as Variant
- method DeleteItem(index as Integer)
- method DeleteItem(label as string)
- method EqualContent(Other as JSONMBS) as Boolean
- method Equals(Other as JSONMBS) as Boolean
- method FilterObjectArray(Name as String, Other as JSONMBS, ByContent as boolean = false) as JSONMBS New in 23.3
- method FindValueInArray(Other as JSONMBS, ByContent as boolean = false, StartIndex as Integer = 0) as Integer
- method FindValueInObjectArray(Name as String, Other as JSONMBS, ByContent as boolean = false, StartIndex as Integer = 0) as Integer
- method hasChild(label as string) as Boolean
- method Sort
- method SuffixObject(nextItem as JSONMBS) as JSONMBS
- method ToHTML(NoHeader as boolean = false, CSS as string = "") as String
- method toString(formatted as boolean) as string
- 16 shared methods
- shared method Convert(value as variant) as JSONMBS
- shared method JSONObjectCount as Integer
- shared method NewArrayNode as JSONMBS
- shared method NewBoolNode(value as boolean) as JSONMBS
- shared method NewDoubleArray(values() as Double) as JSONMBS
- shared method NewFalseNode as JSONMBS
- shared method NewInt64Node(value as Int64) as JSONMBS
- shared method NewIntegerArray(values() as Integer) as JSONMBS
- shared method NewNullNode as JSONMBS
- shared method NewNumberNode(value as Double) as JSONMBS
- shared method NewNumberNode(value as string) as JSONMBS
- shared method NewObjectNode as JSONMBS
- shared method NewStringArray(values() as string) as JSONMBS
- shared method NewStringNode(value as string) as JSONMBS
- shared method NewTrueNode as JSONMBS
- shared method NewUInt64Node(value as UInt64) as JSONMBS
- 8 constants
- const kTypeArray = 6
- const kTypeError = 0
- const kTypeFalse = 1
- const kTypeNull = 3
- const kTypeNumber = 4
- const kTypeObject = 7
- const kTypeString = 5
- const kTypeTrue = 2
This class has no sub classes.
Some properties using for this class:
- JSONMBS.ChildNode as JSONMBS
- JSONMBS.LastChildNode as JSONMBS
- JSONMBS.NextNode as JSONMBS
- JSONMBS.PreviousNode as JSONMBS
- JSONMBS.Root as JSONMBS
Some examples using this class:
- /Java/JavaDatabase/JavaDatabase to JSON
- /MongoDB/MongoDB Blog
- /MongoDB/MongoDB Test
- /Util/JSON/JSON
- /Util/JSON/JSON Benchmark
- /Util/JSON/JSON Benchmarks
- /Util/JSON/JSON recursive search
- /Util/JSON/JSONItem clone
- /Util/RecordSet to JSON
Blog Entries
- Different variations to make a JSON in Xojo
- MBS Xojo Plugins, version 23.1pr2
- News from the MBS Xojo Plugins in Version 23.0
- MBS Xojo Plugins, version 22.6pr3
- MBS Xojo Plugins, version 21.1pr8
- MonkeyBread Software Releases the MBS Xojo Plugins in version 20.4
- MBS Xojo Plugins, version 20.0r8
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.1
- MBS Xojo / Real Studio Plugins, version 15.0pr10
- JSON
Xojo Developer Magazine
- 21.1, pages 95 to 96
- 19.3, page 10: News
- 18.6, page 10: News
- 17.5, page 9: News
- 17.5, page 35: What's New in the MBS Plugins, With the Plugins growing every year, here are new capabilities you may have missed by Stefanie Juchmes
- 17.4, page 10: News
- 16.4, page 11: News
- 15.2, page 10: News
Videos
The items on this page are in the following plugins: MBS Util Plugin.
