Data Types

This section describes the supported data types for values provided as arguments to RPC operations and returned as the results of RPC operations.

The available data types are the intersection of the data types supported by both the JSON-RPC and XML-RPC protocols.

Scalar Types

The RPC interface supports five basic scalar data types, available in virtually all commonly-used programming languages:

null

The canonical null value.

bool

The boolean true and false truth values.

int

A signed long (64-bit) integer.

float

A signed double-precision (64-bit) floating-point number.

string

A Unicode character string.

Composite Types

array

An ordered sequence of values. The values may be of any supported data type.

struct

An unordered set of key-value mappings. The keys are always strings, but the values may be of any supported data type.