History log of /libcore/json/src/main/java/org/json/JSONTokener.java
Revision Date Author Comments
8e2f8aff8b2c9493ebffb8ad3825e58d02253471 22-Jan-2015 Elliott Hughes <enh@google.com> Throw JSONException rather than NumberFormatException for an invalid escape.

Only our documentation claims that any of the JSON code throws
NumberFormatException, and throwing JSONException seems much more in keeping
with the rest of the API (and makes it easier for callers to handle errors).

Bug: https://code.google.com/p/android/issues/detail?id=103641
Change-Id: I4f4ebfd983f4ccb2a1f266a0bfa5732174df26f6
c2d0a1f1bd2c6414c29dd44fe240dcf1f45e59b9 04-Dec-2012 Elliott Hughes <enh@google.com> Add detail messages to all remaining NullPointerExceptions.

I've left java.util.concurrent alone, since that's upstream code.

Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
037fb18dd4ba3f54c5b2fb5386c5673e1db5babf 20-Jul-2011 Jesse Wilson <jessewilson@google.com> Skip byte order mark (BOM) in org.json

Bug: http://code.google.com/p/android/issues/detail?id=18508
Change-Id: Ib992a0a4b22e340446abab14e4f32df5efcd0b49
661054f5a2f7f8f5f3ceffb97e803211b546e7fc 08-Jul-2011 Jesse Wilson <jessewilson@google.com> Fix string to boolean coercsion.

When we reimplemented this API I broke consistency with
org.json. Bringing it back into line makes the implementation
more strict (my preference) and makes us consistent with
ourselves before this code was redone.

Bug: http://code.google.com/p/android/issues/detail?id=16411
Change-Id: I8c1b52e382ad91932d3cf9a5b346db58df4da7c6
5501a3d4b3d7657c183ed5446fe67fa011fbf70b 03-Dec-2010 Elliott Hughes <enh@google.com> Comments/javadoc should be in en_US, not en_CA.

Change-Id: Ie9dde4971e0a6a8dadd14af43d631158fc488cd8
19554ec99d57e820a4c9da3bcde93d77b537d515 06-Apr-2010 Jesse Wilson <jessewilson@google.com> Adding support for hash '#' comments to our JSON parser.

Neither the JSON RFC nor the documentation of Crockford's
implementation mention these comments, but somehow the
old parser used to support these. And so we shall also.

See bug 2571423.

Change-Id: I77d64c5ec53278d8df5fe1873404f1241320504b
95cf9534436835291927cb4bcb36842731319da8 18-Mar-2010 Jesse Wilson <jessewilson@google.com> Drop needless parens from Javadoc.

Although this violates my longstanding style preference, it agrees
with almighty JJB's official ArrayList, which is Good Enough For Me.

Change-Id: I7b608c12e04d0b7789bfcabeab4b7347ad22baca
d79a9eede731ac48cfeb152ca59f8dd574ae1284 16-Mar-2010 Jesse Wilson <jessewilson@google.com> Fixing an @link issue that is upsetting DroidDoc.

Change-Id: I9837cfd46684ac6d5b9ec4ac6809da3c3f61d57d
c78ca6700830460f671652ce3efd4cc2c0cf7a6a 16-Mar-2010 Jesse Wilson <jessewilson@google.com> First half of JSON Javadocs.

Change-Id: I277ec3b35a28802dd7b7f82c1f4bbadbd3cc4c65
014aa1a70743ae7e6ec0de1555f5b43d43844cf4 13-Mar-2010 Jesse Wilson <jessewilson@google.com> Adding an Apache-licensed implementation of org.json

Change-Id: I1b67bac70bd25220a619e6ebe61f7f1c6f316faa
9e17204aa78c2687a2c6763dd74201a53a620614 13-Mar-2010 Jesse Wilson <jessewilson@google.com> Removing the non-free org.json implementation

Change-Id: Ife53082824f5916665f198d4b2fb863271841ce0
adc854b798c1cfe3bfd4c27d68d5cee38ca617da 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
1c0fed63c71ddb230f3b304aac12caffbedf2f21 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
fdb2704414a9ed92394ada0d1395e4db86889465 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution