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
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
5dc1031d17
Made JSONMl constructor to private and refactored ternary operations to independent statement in L243
2025-10-23 22:38:01 +05:30
AlexCai2019
e800cc349f
Use constant.equals()
...
There are some equals() that are not constant.equals(variable), but variable.equals(constant)
2025-06-05 02:15:49 +08:00
Valentyn Kolesnikov
86253211c2
Added missing Javadocs for Java 21
2024-02-18 04:20:33 +02:00
Tamas Perger
72f4c3e646
refactor: rename XMLtoJSONMLParserConfiguration to JSONMLParserConfiguration
2023-02-12 01:32:34 +00:00
Tamas Perger
df2d6f8363
fix: introduce optional XMLtoJSONMLParserConfiguration parameter for JSONML.toJSONArray(...) functions, to facilitate max nesting depth override.
2023-02-11 01:52:13 +00:00
Tamas Perger
a6e412bded
fix: limit the nesting depth in JSONML
...
Limit the XML nesting depth for CVE-2022-45688 when using the JsonML transform.
2023-02-10 01:46:44 +00:00
stleary
6daabb43ab
update-copyright - Replace copyright and license restrictions with Public Domain
2022-08-23 20:00:25 -05:00
stleary
2b0a8838ef
gradle support
2020-05-22 11:17:44 -05:00
Benjamin Gehrels
74e4932cfc
Transform the repository into standard maven format and merge the pom.xml of the release repo
2020-04-29 19:24:44 +02:00