Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

JSONMBS.ArraySize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: Queries size of array.
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.ChildNode as JSONMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The first child node.
Example:
dim o as JSONMBS = JSONMBS.NewArrayNode

o.AddItemToArray JSONMBS.NewNumberNode(1)
o.AddItemToArray JSONMBS.NewNumberNode(2)
o.AddItemToArray JSONMBS.NewNumberNode(3)
o.AddItemToArray JSONMBS.NewNumberNode(4)

dim n as JSONMBS = o.ChildNode // first child
MsgBox n.ValueString // shows 1
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The internal handle to the JSON object.
Notes:
It is possible to have two REALbasic objects with the same handle pointing to the same JSON node.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.LastChildNode as JSONMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The last child node.
Example:
dim o as JSONMBS = JSONMBS.NewArrayNode

o.AddItemToArray JSONMBS.NewNumberNode(1)
o.AddItemToArray JSONMBS.NewNumberNode(2)
o.AddItemToArray JSONMBS.NewNumberNode(3)
o.AddItemToArray JSONMBS.NewNumberNode(4)

dim k as JSONMBS = o.LastChildNode
MsgBox k.ValueString // shows 4
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.Name as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The name of this node.
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.NextNode as JSONMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The next node on the same level.
Example:
dim o as JSONMBS = JSONMBS.NewArrayNode

o.AddItemToArray JSONMBS.NewNumberNode(1)
o.AddItemToArray JSONMBS.NewNumberNode(2)
o.AddItemToArray JSONMBS.NewNumberNode(3)
o.AddItemToArray JSONMBS.NewNumberNode(4)

dim k as JSONMBS = o.ChildNode
while k<>nil
MsgBox k.ValueString // shows 1, 2, 3, 4

k=k.NextNode
wend
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.ParseError as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The parse error string.
Notes:
When parsing fails, this may be an useful message so you know what went wrong.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.PreviousNode as JSONMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The previous node on the same level.
Example:
dim o as JSONMBS = JSONMBS.NewArrayNode

o.AddItemToArray JSONMBS.NewNumberNode(1)
o.AddItemToArray JSONMBS.NewNumberNode(2)
o.AddItemToArray JSONMBS.NewNumberNode(3)
o.AddItemToArray JSONMBS.NewNumberNode(4)

dim k as JSONMBS = o.LastChildNode
while k<>nil
MsgBox k.valuestring // shows 4, 3, 2, 1

k=k.PreviousNode
wend
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.Root as JSONMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The root object.
Notes:
The root node owns the references to all children.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.toString as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 14.3 Yes Yes Yes Yes No
Function: Produces a JSON markup text document from a document tree.
Example:
dim o as JSONMBS = JSONMBS.NewObjectNode

o.AddItemToObject "text", JSONMBS.NewStringNode("Hello World")

MsgBox o.toString // shows "{"text":"Hello World"}"
Notes:
Returns "" on any error. Lasterror is set.
(Read only property)

See also:

Feedback, Comments & Corrections

JSONMBS.Type as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The type of the node.
Example:
dim n as JSONMBS = JSONMBS.NewNullNode

MsgBox str(n.Type)
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.TypeName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 12.3 Yes Yes Yes Yes No
Function: Shows type of this node as string.
Example:
dim o as JSONMBS = JSONMBS.NewArrayNode
MsgBox o.TypeName
Notes:
This property was added for debugging so you can see type in debugger.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.Valid as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 16.3 Yes Yes Yes Yes No
Function: Checks whether node is valid.
Notes:
The handle is not zero and there are no error nodes in JSON tree.
Returns true if valid, else false.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.ValueBoolean as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 17.0 Yes Yes Yes Yes No
Function: The boolean value of this json node.
Notes:
Returns true if type is kTypeTrue, false if kTypeFalse or true if ValueInteger <> 0.
(Read only property)

Feedback, Comments & Corrections

JSONMBS.ValueDouble as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The value of the node.
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.ValueInteger as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The value of the node.
Notes: (Read only property)

Feedback, Comments & Corrections

JSONMBS.ValueString as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JavaScript Object Notation MBS Util Plugin 13.3 Yes Yes Yes Yes No
Function: The value of the node.
Notes: (Read only property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.




Links
MBS Xojo tutorial videos