The type-specifier class

The “type-specifier” class is used to declare JSON types. It is an empty abstract class that is the parent of specific subclasses to represent each of the core JSON types, hence any instantiation of the “type-specifier” class can represent one of:

  • “string”
  • “number”
  • “boolean”
  • “array”
  • “object”

The “type-specifier” class does not itself define any properties, but the definition of each type is described in the following sections: