Data type

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

This section describes the data types that can be specified by using the REST API.

The following table shows the data types supported by the REST API and the corresponding JSON data types.

Data type

JSON type

Description

boolean

boolean

A type that represents true or false.

Example: true

int

number

A type that represents a 32-bit signed integer.

Example: 100

long

number

A type that represents a 64-bit signed integer.

Example: 1048576

string

string

A type that represents a character string.

Example: "DKR5D-J900SS"

ISO8601string

string

A type that represents time in the ISO 8601 extended format (YYYY-MM-DDThh:mm:ssZ).

The only time zone that you can specify is UTC.

Example: "2017-09-30T09:27:35Z"

In addition to the preceding data types, the following JSON data types are also used:

Object type
The character string, in which the attribute and value are connected with a colon (:), is enclosed in { and }. If more than one attribute-value pair exists, the pairs are separated by commas.
Array type
The character string, in which multiple values are separated by commas, is enclosed in [ and ].