[json4java commit] r86 - wiki

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 28, 2008, 12:23:13 AM2/28/08
to json4jav...@googlegroups.com
Author: da...@alkaline-solutions.com
Date: Wed Feb 27 21:22:54 2008
New Revision: 86

Modified:
wiki/CoreTypes.wiki

Log:
Edited wiki page through web user interface.

Modified: wiki/CoreTypes.wiki
==============================================================================
--- wiki/CoreTypes.wiki (original)
+++ wiki/CoreTypes.wiki Wed Feb 27 21:22:54 2008
@@ -7,11 +7,14 @@
= 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
+ * `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]
+
+The core types are all mutually exclusive; each accepts only values
that the others would not.
+In addition, there is one additional core type which is provided for
convenience, even though it would be possible to be declared in terms
of the others:
+ * `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

Reply all
Reply to author
Forward
0 new messages