Skip to content

Commit

Permalink
Merge pull request #886 from Simulant87/884-strictmode-javadoc
Browse files Browse the repository at this point in the history
add javadoc for strictmode
  • Loading branch information
stleary committed Apr 15, 2024
2 parents d02ac0f + 5bd4257 commit 8983ca6
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 8983ca6

Please sign in to comment.