[json4java commit] r90 - wiki

0 views
Skip to first unread message

codesite...@google.com

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

Added:
wiki/Restrictions.wiki

Log:
Created wiki page through web user interface.

Added: wiki/Restrictions.wiki
==============================================================================
--- (empty file)
+++ wiki/Restrictions.wiki Wed Feb 27 22:46:13 2008
@@ -0,0 +1,15 @@
+#summary restrictions defined by JSON Blueprint
+
+= Introduction =
+
+The following are the included restrictions defined by JSON Blueprint
for defining the format of a JSON data or structure value.
+
+_Note: Numerical values have a range defined by the environment
processing the JSON, but it is recommend that the maximum and minimum
integer values are defined by at least a 32 bit signed number, and that
the maximum/minimum floating-point values are defined by an IEEE 64-bit
floating point number._
+
+== String Restrictions ==
+
+ * `minCharacters` - integer holding the minimum number of characters
allowed for a string. Defaults to zero. Higher values are more
restrictive. A character is a unicode value, which may or may not be
one byte based on the character and the encoding used.
+ * `maxCharacters` - integer holding the maximum number of characters
allowed for a string. Defaults to the maximum integer size. Lower
values are more restrictive. A character is a unicode value, which may
or may not be one byte based on the character and the encoding used.
+ * `pattern` - a regular expression, matching the rules given by
[http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
ECMA 262], the ECMAScript specification. The value null indicates no
pattern is in effect, and is the default. A restriction type should use
the union of all patterns in effect up the tree, however it should be
noted that ECMA 262 does not define the regular expression intersection operator.
+
+_To be continued_
\ No newline at end of file

Reply all
Reply to author
Forward
0 new messages