Added:
wiki/CoreTypes.wiki
Log:
Created wiki page through web user interface.
Added: wiki/CoreTypes.wiki
==============================================================================
--- (empty file)
+++ wiki/CoreTypes.wiki Wed Feb 27 20:38:55 2008
@@ -0,0 +1,17 @@
+#summary Core types of JSON Blueprints
+
+= Introduction =
+
+There are eight core types defined by JSON Blueprints. These types are
considered the most basic and liberal types allowable by JSON
blueprints, and could be used to describe any JSON document available today.
+
+= Details =
+
+The core types are:
+* `string` - a string JSON data type. Includes any legal string
content, including the empty string
+* `number` - an integer or floating point number. Includes every value
valid by the JSON specification.
+* `boolean` - either the value `true` or `false`
+* `array` - an array of any number of elements, containing any JSON
legal values
+* `object` - a JSON object with any number of members, using any valid
key and any legal JSON value (with caveat for [ObjectTypeSpecification
type specification]
+* `null` - the JSON value `null`, which may or may not be considered a
singleton type based on the implementation language. This is kept as
core type to allow easy declaration of values allowed to be null via
[UnionTypes union types]
+* `undefined` - This is not a JSON type, but is the a javascript
primitive value and type. Transporting undefined is not legal over
JSON, but this type is used to declare an object member can or must be
absent, based on [UnionTypes union types]
+* `any` - This is a union of every type declared above, including
`null` and `undefined`. This includes any valid JSON text, taking into
account the restrictions of the [ObjectTypeSpecification object type specification]
\ No newline at end of file