Skip to content

Commit

Permalink
add javadoc for strictmode
Browse files Browse the repository at this point in the history
  • Loading branch information
Simulant87 committed Apr 12, 2024
1 parent d02ac0f commit 5bd4257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/json/JSONTokener.java
Expand Up @@ -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 <code>"test'</code>)
* If strictMode is true, this implementation will not accept unbalanced quotes (e.g will not accept <code>"test'</code>).
* @param quote The quoting character, either
* <code>"</code>&nbsp;<small>(double quote)</small> or
* <code>'</code>&nbsp;<small>(single quote)</small>.
* @param strictMode If true, this implementation will not accept unbalanced quotes (e.g will not accept <code>"test'</code>).
* @return A String.
* @throws JSONException Unterminated string or unbalanced quotes if strictMode == true.
*/
Expand Down

0 comments on commit 5bd4257

Please sign in to comment.