From 5bd4257c544c467be67ee99dfa707d9358d2152a Mon Sep 17 00:00:00 2001 From: Simulant87 Date: Fri, 12 Apr 2024 15:30:41 +0200 Subject: [PATCH] add javadoc for strictmode --- src/main/java/org/json/JSONTokener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/json/JSONTokener.java b/src/main/java/org/json/JSONTokener.java index 078e01620..46937e10a 100644 --- a/src/main/java/org/json/JSONTokener.java +++ b/src/main/java/org/json/JSONTokener.java @@ -284,10 +284,11 @@ public char nextClean() throws JSONException { * Backslash processing is done. The formal JSON format does not * allow strings in single quotes, but an implementation is allowed to * accept them. - * If strictMode is true, this implementation will not accept unbalanced quotes (e.g will not accept "test') + * If strictMode is true, this implementation will not accept unbalanced quotes (e.g will not accept "test'). * @param quote The quoting character, either * " (double quote) or * ' (single quote). + * @param strictMode If true, this implementation will not accept unbalanced quotes (e.g will not accept "test'). * @return A String. * @throws JSONException Unterminated string or unbalanced quotes if strictMode == true. */