summaryrefslogtreecommitdiff
path: root/java/src/json/ext/GeneratorState.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/json/ext/GeneratorState.java')
-rw-r--r--java/src/json/ext/GeneratorState.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/java/src/json/ext/GeneratorState.java b/java/src/json/ext/GeneratorState.java
index a53ff12..0536ac4 100644
--- a/java/src/json/ext/GeneratorState.java
+++ b/java/src/json/ext/GeneratorState.java
@@ -72,7 +72,8 @@ public class GeneratorState extends RubyObject {
private boolean allowNaN = DEFAULT_ALLOW_NAN;
static final boolean DEFAULT_ALLOW_NAN = false;
/**
- * XXX
+ * If set to <code>true</code> all JSON documents generated do not contain
+ * any other characters than ASCII characters.
*/
private boolean asciiOnly = DEFAULT_ASCII_ONLY;
static final boolean DEFAULT_ASCII_ONLY = false;
@@ -192,7 +193,9 @@ public class GeneratorState extends RubyObject {
}
/**
- * XXX
+ * Generates a valid JSON document from object <code>obj</code> and returns
+ * the result. If no valid JSON document can be created this method raises
+ * a GeneratorError exception.
*/
@JRubyMethod
public IRubyObject generate(ThreadContext context, IRubyObject obj) {