Skip to content

Commit 2020a50

Browse files
committed
JCR-5141 Deprecate JsonParser
Recommend using JSON-P instead
1 parent 165d898 commit 2020a50

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/json/JsonHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
/**
2222
* The <code>JSONHandler</code> interface receives notifications from the
2323
* <code>JsonParser</code>.
24+
* @deprecated use <a href="https://jakartaee.github.io/jsonp-api/docs/api/?overview-summary.html">JSON Processing API</a> instead.
2425
*/
26+
@Deprecated(since="2.24.0")
2527
public interface JsonHandler {
2628

2729
/**

jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/json/JsonParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
* <code>JsonParser</code> parses and validates the JSON object passed upon
3030
* {@link #parse(String)} or {@link #parse(InputStream, String)} and notifies
3131
* the specified <code>JsonHandler</code>
32+
* @deprecated use <a href="https://jakartaee.github.io/jsonp-api/docs/api/?overview-summary.html">JSON Processing API</a> instead.
3233
*/
34+
@Deprecated(since="2.24.0")
3335
public class JsonParser {
3436

3537
private static final String NULL = "null";

0 commit comments

Comments
 (0)