OwenSanzas
9d14246bee
Fix ClassCastException in JSONML.toJSONArray and toJSONObject
...
Add type checking before casting parse() results to JSONArray/JSONObject.
When parse() returns an unexpected type (e.g., String for malformed input),
the code now throws a descriptive JSONException instead of ClassCastException.
This prevents unchecked exceptions from propagating to callers who only
expect JSONException from these methods.
Fixes #1034
2026-01-27 11:36:46 +00:00
Sean Leary
e635f40238
Merge pull request #1027 from Simulant87/1023-set-default-locale
...
Save/restore default locale in test
2025-12-29 19:42:57 -06:00
Sean Leary
d5e744ca90
Merge pull request #1028 from Simulant87/fix-sonarqube-reliability-issues
...
Refactoring: Fix sonarqube reliability issues
2025-12-29 19:42:02 -06:00
Sean Leary
e0c4086168
Merge pull request #1029 from Simulant87/external-javadoc-badge
...
add badge to external hosted javadoc
2025-12-29 19:41:31 -06:00
Sean Leary
cf653682be
Merge pull request #1030 from stleary/pre-release-20251224
...
pre-release-20251224 Prep for next release
20251224
2025-12-24 09:16:47 -06:00
Sean Leary
24bba97c1d
pre-release-20251224 update docs and builds for next release
2025-12-24 09:05:18 -06:00
Simulant
96353de304
add badge to external hosted javadoc
2025-12-21 23:16:01 +01:00
Simulant
8cbb4d5bb3
Fix sonarqube reliability issues
2025-12-20 22:57:24 +01:00
Simulant
421abfdc1f
save and restore the current default locale, to avoid any side effects on other executions in the same JVM
2025-12-20 22:27:45 +01:00
Sean Leary
128fb42ccc
Merge pull request #1021 from Simulant87/update-build-script
...
Update github build actions, add LTS JDK 25 build
2025-11-18 07:26:35 -06:00
Simulant87
f8e6dfdc63
Merge pull request #3 from Simulant87/update-readme
...
Update README.md tested on java 25
2025-11-14 15:49:30 +01:00
Simulant87
3bc98dfc7f
Update README.md tested on java 25
2025-11-14 15:49:09 +01:00
Simulant87
005dc7b49e
add build for LTS JDK 25
2025-11-14 15:47:58 +01:00
Simulant87
d38cb064fd
reset setup-java to version 1 for 1.6 build
2025-11-14 15:45:41 +01:00
Simulant87
e9a7d7c72e
add distribution to java 1.6 build
2025-11-14 15:40:21 +01:00
Simulant87
73c582e129
update github actions to version 5
...
consistently update all actions checkout, setup-java, upload-artifactory to version 5
2025-11-14 15:29:52 +01:00
Sean Leary
a6ca84074a
Merge pull request #1020 from Abhineshhh/fix/support-java-records
...
Fix: Support Java record accessors in JSONObject
2025-11-11 20:19:42 -06:00
Sean Leary
8c14e96c44
Merge pull request #1017 from Md-Yasir/enhancement/refactors
...
Code Refactors
2025-11-09 19:02:49 -06:00
AbhineshJha
8f3b0f1c13
Add runtime record detection for backward compatibility
2025-11-02 22:32:44 +05:30
AbhineshJha
f2acf8af69
Optimize method name exclusion using Set lookup instead of multiple equals checks
2025-11-01 19:33:29 +05:30
AbhineshJha
fd1eee9c3b
Add comprehensive edge case tests for record support
2025-11-01 19:33:29 +05:30
AbhineshJha
2550c692cf
Refactor: Extract isRecordStyleAccessor helper method
2025-11-01 19:33:29 +05:30
AbhineshJha
20f5200000
Fix: Support Java record accessors in JSONObject
2025-11-01 19:33:29 +05:30
Sean Leary
25f355a953
Merge pull request #1006 from sk02241994/feature-1003
...
1003: Implement JSONObject.fromJson() with unit tests
2025-10-31 11:25:03 -05:00
sk02241994
42800c208a
Updating to work with java 1.6
2025-10-28 13:06:11 +11:00
md-yasir
0cdc5e5170
Reverted Constructor access to public
2025-10-25 20:51:50 +05:30
md-yasir
ac65ee0490
Revert "Refactored stop conditions to be invariant by using while loop."
...
This issue can be ignored
2025-10-25 20:37:54 +05:30
md-yasir
39e8ead7cd
Added java doc for deprecated decoration
2025-10-24 09:37:46 +05:30
md-yasir
6dd878d3c9
Deprecated public constructors instead of making it private.
2025-10-24 09:10:53 +05:30
md-yasir
2c6082a0a2
Refactored stop conditions to be invariant by using while loop.
2025-10-23 22:50:12 +05:30
md-yasir
5dc1031d17
Made JSONMl constructor to private and refactored ternary operations to independent statement in L243
2025-10-23 22:38:01 +05:30
md-yasir
1de42aa4fd
Made CookieList constructor to private.
2025-10-23 22:37:00 +05:30
md-yasir
c13b57ca26
Made Cookie constructor to private.
2025-10-23 22:36:53 +05:30
sk02241994
f92f281620
Updating to work with java 1.6
2025-10-23 17:33:37 +11:00
sk02241994
8ccf5d7525
Removing the interface classes and simplifying the implementation to use if else instead
2025-10-23 17:32:07 +11:00
sk02241994
a7c193090a
Updating docs
2025-10-16 14:23:30 +11:00
sk02241994
c4c2beb874
Limiting implemetation by removing the new classes.
2025-10-16 14:19:19 +11:00
sk02241994
9adea9e12d
Updating to work with java 1.6
2025-10-13 12:39:15 +11:00
sk02241994
7465da858c
- Updating for java 1.6
...
- Resolving Sonar cube issues.
2025-10-13 12:39:15 +11:00
sk02241994
0521928463
- Added implementation for Enum and Map
...
- Moving the CustomClass to data folder.
- Removing JSONBuilder.java
- Moving the implementation of JSONBuilder to JSONObject.
2025-10-13 12:39:14 +11:00
sk02241994
fbb6b3158e
Updating to work with java 1.6
2025-10-13 12:39:14 +11:00
sk02241994
ebc13d6685
Updating to work with java 1.6
2025-10-13 12:39:13 +11:00
sk02241994
7d28955216
Updating to work with java 1.6
2025-10-13 12:39:13 +11:00
sk02241994
83a0e34be5
1003: Implement JSONObject.fromJson() with unit tests
2025-10-13 12:39:12 +11:00
Sean Leary
3e8d1d119f
Merge pull request #1014 from Md-Yasir/enhancement/string-check
...
changed string checking logic
2025-10-11 21:02:44 -05:00
md-yasir
1a2c50b40c
changed string checking logic >> string.length() > 0 to !string.isEmpty()
2025-10-11 19:48:33 +05:30
Sean Leary
eb97037f7c
Merge pull request #1013 from marilynel/master
...
sonarqube changes to jsonarray
2025-09-24 12:38:56 -05:00
marilynel
05867c4b0b
Merge branch 'master' of https://github.com/marilynel/JSON-java
2025-09-21 16:37:20 -08:00
marilynel
c6efa080c0
more cleanup sonarqube JSONArray
2025-09-21 16:36:52 -08:00
Sean Leary
aff59d06fa
Merge pull request #1011 from marilynel/master
...
more sonarcube fixes
2025-09-18 20:13:43 -05:00