Plugin System/API/Data Types

Introduction
This page describes how certain data types are serialized as JSON.

String
Strings are serialized as JSON strings.

Examples: "cat", "The 2 dogs barked."

Numbers
Integers and floating point numbers are serialized as JSON numbers. There are not separate data types for integers and floats, only the general numbers type (which can represent both integers or floats).

Examples: 1, 0.542, -12345.6

Vectors
Vectors are serialized as JSON arrays of JSON numbers. Use context to differentiate between a vector, a quaternion, and a color. That is, if a message parameter is expected to be a vector, interpret the JSON array as a vector.

Examples: [1.0, 2.0, 3.0], [-3, 5, 1000]

Quaternions
TBW

Colors
TBW