John J. Aylward
b4a75c7bf8
Updates Cookie class to be a more generic in attribute parsing and emit.
...
This is so the library can age better as new attributes are added to RFC
revisions.
2020-05-26 08:53:37 -04:00
John J. Aylward
a24db2cce2
remove unused import
2019-09-17 11:15:25 -04:00
John J. Aylward
67e59888a2
add second case for data in #484
2019-09-17 11:14:41 -04:00
John J. Aylward
e9c27ab376
standardize exception messages
2019-09-17 11:08:26 -04:00
John J. Aylward
fb01575394
Test cases updates for standardized exception messages
2019-09-17 10:47:16 -04:00
John J. Aylward
3e7a0b13d1
new test case for issue 484
2019-09-17 10:36:48 -04:00
John J. Aylward
328e7d8944
corrects EOL error when the Meta tag isn't closed properly and we reach
...
the end of the input.
2019-09-17 10:33:26 -04:00
John J. Aylward
b044b7db4d
clarifies exception that the parser makes when reading JSON
2019-08-14 11:47:49 -04:00
John J. Aylward
19e9bb6c07
Adds check for EOF
2018-12-10 11:45:53 -05:00
John J. Aylward
e7f7d348cd
* updates tests to cover more cases of tokenizing
...
* uncomments tests that should now work
2018-12-10 11:45:10 -05:00
John J. Aylward
3e6c0a51bd
update expected exception text in tests to match unified number getters
2018-10-04 16:02:50 -04:00
John J. Aylward
34cfe6df14
removes duplicate code in number getters
2018-10-04 16:02:14 -04:00
John J. Aylward
71c6dd1e34
remove unneeded casts
2018-10-02 15:33:33 -04:00
John J. Aylward
30c1bd16ba
fix javadoc
2018-10-02 15:28:53 -04:00
John J. Aylward
bc347d2c19
cleanup of minor warnings
2018-10-02 15:28:24 -04:00
John J. Aylward
a63fa03062
* Fixes opt/getBigDecimal to be consistent
...
* Performance: Updates JSONWriter to use a regex to decide if writing as a number is best.
2018-10-02 15:28:24 -04:00
John J. Aylward
3b8b0a681c
Update test cases to verify performance change and verify opt/getBigDecimal match
2018-10-02 12:38:17 -04:00
John J. Aylward
ca9df04539
Initial implementation of XMLParserConfig object for more flexible XML parsing
2018-03-21 22:09:46 -04:00
John J. Aylward
3fe4a767e6
Fixes incorrect syntax for JSONPointer in test.
2018-03-20 22:15:25 -04:00
John J. Aylward
2362c930d1
Fixes #410 . Invalid processing of trailing / for JSON Pointer
2018-03-19 09:57:06 -04:00
John J. Aylward
43f3f5e80b
Add another test
2018-03-19 09:49:42 -04:00
John J. Aylward
f4201cf318
Test cases for issue described in https://github.com/stleary/JSON-java/issues/410 .
2018-03-19 09:34:13 -04:00
John J. Aylward
a509a28ed4
Cleans up the name check a little to be more permissive on what can be tagged with the new JSONPropertyName annotation.
...
Also updates the javadoc to reflect the new name allowances
2018-03-11 17:22:05 -04:00
John J. Aylward
193a3823b5
new test cases to support bean annotation
2018-03-11 16:56:07 -04:00
John J. Aylward
74b9a60f98
Adds annotation to support custom field names during Bean serialization
2018-03-11 16:28:24 -04:00
John J. Aylward
b63b976acb
Updates javadoc to match actual exceptions thrown.
...
Also optimizes some boxing statements and returns.
2018-03-07 12:35:56 -05:00
John J. Aylward
aa5e80bc8d
add test cases for null keys
2018-03-07 12:11:17 -05:00
John J. Aylward
641b68dd55
updates javadoc.
2017-07-07 21:33:46 -04:00
John J. Aylward
643b25140f
Updates for populateMap based on discussion in #279 and #264
2017-07-07 20:48:42 -04:00
John J. Aylward
16baa323cf
adds comments
2017-07-03 13:03:02 -04:00
John J. Aylward
52845366bd
Fixes more position errors from stepping to new lines and then back.
2017-07-03 13:03:02 -04:00
John J. Aylward
47ff774f5c
Updates test coverage table
2017-06-23 23:55:22 -04:00
John J. Aylward
af39376d92
more fixes for testing postition information
2017-06-23 23:25:11 -04:00
John J. Aylward
e7e6ed9205
Fixes position reports on errors
2017-06-23 13:40:41 -04:00
John J. Aylward
2fbe4d96cf
change JSONObject(Map) constructor to use the default capacity when a null map is passed
2017-06-08 12:18:04 -04:00
John J. Aylward
3645f91b55
change JSONArray(Collection) constructor to use the default capacity when a null collection is passed
2017-06-08 12:15:03 -04:00
John J. Aylward
9c092753b0
* Updates array constructor and bulk operations to best guess capacity information
...
* Update JSONObject to allow best guess for initial capacity.
2017-06-08 11:22:23 -04:00
John J. Aylward
c5e4b91fa4
Updates tests for better error handling changes
2017-06-08 02:25:59 -04:00
John J. Aylward
ad6bdd715d
Adds JSONException for write value errors so serialization errors can be tracked easier
2017-06-05 20:51:57 -04:00
John J. Aylward
237bf0adb6
more comments
2017-05-31 18:31:02 -04:00
John J. Aylward
f76fbe7005
fixes comments
2017-05-31 18:13:40 -04:00
John J. Aylward
757b6edb03
Merge branch 'master' of github.com:stleary/JSON-java into OptimizeOpt
2017-05-21 13:12:24 -04:00
John J. Aylward
04d76b638b
split out tests for better readability
2017-05-19 15:01:37 -04:00
John J. Aylward
04d6e83fc2
* Missed JSONArray optFloat and optDouble for the revert
...
* prevents erasure of stack trace for rethrown exceptions
2017-05-19 09:49:22 -04:00
John J. Aylward
849b392c01
updates the getNumber/optNumber to not return invalid Doubles
2017-05-18 19:49:50 -04:00
John J. Aylward
a7f8ff24df
correct string check for JSONObject optBigDecimal and optBigInteger
2017-05-18 14:41:42 -04:00
John J. Aylward
cfe6851d8c
Adds testing for -0 with optNumber
2017-05-18 14:25:42 -04:00
John J. Aylward
1ab5260a7a
* Adds methods getNUmber and getFloat to JSONArray and JSONObject
...
* Extracts the stringToNumber logic that the optNumber method uses to reuse it between classes
* Fixes -0 issue with optNumber/getNumber
2017-05-18 14:24:34 -04:00
John J. Aylward
c28a2bdf39
* reverts changes to getDouble and related optDouble and optFloat
...
* Updates optNumber to be smarter about which object it uses to parse strings
2017-05-18 13:07:32 -04:00
John J. Aylward
1967bee236
expands the coercion tests a little more
2017-05-18 12:11:43 -04:00
John J. Aylward
0150639119
update the new coercion test to use actual values and show the parseDouble method is not robust enough for large numbers
2017-05-18 11:58:28 -04:00
John J. Aylward
382f62e781
* Prevent exceptions in cases where the value is not a string.
...
* Don't call toString when we know it's a string, just cast
2017-05-18 11:41:51 -04:00
John J. Aylward
bdb1163445
Adds conversion tests to ensure downward type coercions are handled sanely
2017-05-18 11:38:42 -04:00
John J. Aylward
2867aaa8c8
Updates test cases to support new optFloat and optNumber
2017-05-17 12:33:59 -04:00
John J. Aylward
0c7bd725a6
fixes for javadoc
2017-05-17 11:34:37 -04:00
John J. Aylward
fcdb8671b2
grr, forgot to save changes on last commit
2017-05-17 11:32:44 -04:00
John J. Aylward
c46774cf13
* Update opt* methods for JSONArray
...
* Add support to JSONArray and JSONObject to optionally get raw number values
* Add support to JSONArray and JSONObject to optionally get float values
2017-05-17 11:29:26 -04:00
John J. Aylward
bd4b180f4e
Support for float to BigDecimal in optBigDecimal
2017-05-17 10:51:06 -04:00
John J. Aylward
49d47e3ff2
Adjustments to tests for https://github.com/stleary/JSON-java/pull/337/
2017-05-16 19:42:46 -04:00
John J. Aylward
a8d4e4734f
adjustments to opt methods in reference to https://github.com/stleary/JSON-java/issues/334
2017-05-16 19:38:01 -04:00
John J. Aylward
1d040ec407
fixes errors with tests relating to https://github.com/stleary/JSON-java/pull/336
2017-05-16 18:16:07 -04:00
John J. Aylward
4865f51dd5
change float double literals to be more standard as 1.0f and 1.0d respectively
2017-05-16 15:38:54 -04:00
John J. Aylward
c870094f69
Fixes spelling in comments and removes compile time warnings
2017-05-16 15:35:05 -04:00
John J. Aylward
c233ae709e
comment out second unreliable test
2017-04-27 12:52:02 -04:00
John J. Aylward
95da4246a2
fix spelling in comment
2017-04-27 12:48:43 -04:00
John J. Aylward
9df5d34bbe
* Update link in the README to the main JSON-Java repo
...
* Cleans up some warnings
* Adds new test for bug https://github.com/stleary/JSON-java/issues/332
* Adds some resource handling for string writers using pre-java1.7
support. I know StringWriters don't need a close method called, but the
tests should still handle their resources properly.
2017-04-27 12:39:42 -04:00
John J. Aylward
ae1e9e2b6a
fix spelling in javadoc comment
2017-04-03 11:59:36 -04:00
John J. Aylward
eb806f4c14
make sure locale independent data is not upper/lowercased incorrectly. See #315
2017-02-10 10:07:28 -05:00