Merge pull request #886 from Simulant87/884-strictmode-javadoc

add javadoc for strictmode
This commit is contained in:
Sean Leary 2024-04-15 17:00:32 -05:00 committed by GitHub
commit 8983ca6da1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,10 +284,11 @@ public class JSONTokener {
* 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.
*/