Skip to content

Commit 8983ca6

Browse files
authored
Merge pull request #886 from Simulant87/884-strictmode-javadoc
add javadoc for strictmode
2 parents d02ac0f + 5bd4257 commit 8983ca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/json/JSONTokener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ public char nextClean() throws JSONException {
284284
* Backslash processing is done. The formal JSON format does not
285285
* allow strings in single quotes, but an implementation is allowed to
286286
* accept them.
287-
* If strictMode is true, this implementation will not accept unbalanced quotes (e.g will not accept <code>"test'</code>)
287+
* If strictMode is true, this implementation will not accept unbalanced quotes (e.g will not accept <code>"test'</code>).
288288
* @param quote The quoting character, either
289289
* <code>"</code>&nbsp;<small>(double quote)</small> or
290290
* <code>'</code>&nbsp;<small>(single quote)</small>.
291+
* @param strictMode If true, this implementation will not accept unbalanced quotes (e.g will not accept <code>"test'</code>).
291292
* @return A String.
292293
* @throws JSONException Unterminated string or unbalanced quotes if strictMode == true.
293294
*/

0 commit comments

Comments
 (0)