summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-08-31 02:04:55 +0200
committerFlorian Frank <flori@ping.de>2011-08-31 02:22:41 +0200
commit3dab4c5a6a97fac03dacf19446b9ff2a6b397591 (patch)
tree9ddfb92c0c66aef0daaf40d57385e1e921c9a673 /java
parent0dd975a6ea54b63adc7af4d1fd40b8f9ab95cf46 (diff)
downloadjson-3dab4c5a6a97fac03dacf19446b9ff2a6b397591.tar.gz
Add some documentationv1.5.4
Diffstat (limited to 'java')
-rw-r--r--java/src/json/ext/GeneratorState.java3
-rw-r--r--java/src/json/ext/Parser.rl4
2 files changed, 6 insertions, 1 deletions
diff --git a/java/src/json/ext/GeneratorState.java b/java/src/json/ext/GeneratorState.java
index 0536ac4..78524a1 100644
--- a/java/src/json/ext/GeneratorState.java
+++ b/java/src/json/ext/GeneratorState.java
@@ -78,7 +78,8 @@ public class GeneratorState extends RubyObject {
private boolean asciiOnly = DEFAULT_ASCII_ONLY;
static final boolean DEFAULT_ASCII_ONLY = false;
/**
- * XXX
+ * If set to <code>true</code> all JSON values generated might not be
+ * RFC-conform JSON documents.
*/
private boolean quirksMode = DEFAULT_QUIRKS_MODE;
static final boolean DEFAULT_QUIRKS_MODE = false;
diff --git a/java/src/json/ext/Parser.rl b/java/src/json/ext/Parser.rl
index b037359..e8cd874 100644
--- a/java/src/json/ext/Parser.rl
+++ b/java/src/json/ext/Parser.rl
@@ -134,6 +134,10 @@ public class Parser extends RubyObject {
*
* <dt><code>:array_class</code>
* <dd>Defaults to Array.
+ *
+ * <dt><code>:quirks_mode</code>
+ * <dd>Enables quirks_mode for parser, that is for example parsing single
+ * JSON values instead of documents is possible.
* </dl>
*/
@JRubyMethod(name = "new", required = 1, optional = 1, meta = true)