Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Deprecated API


Level 2

Hello ,

We Are going to migrate my project AEM  6.2 to AEM 6.4  here one problem i faced , Json Api (JSONObject and JSONArray) is deprecated.Could you please let me know any one correct solution , i found GSON and JackSon but in that JSONArray is not replaced with anything please post your suggestions ?

As well as javax.jcr.query.Query.XPATH also facing same problem ? Let me know


Raazu G 

3 Replies


Community Advisor

Dear Raazu,

That's correct JSONObject and JSONArray have been deprecated, while they are deprecated, they still perfectly work in 6.4.

No action for JSONObject and JSONArray is a valid short term action for 6.4 upgrade.

However, if you have time both GSON and Jackson or Vanila Java 1.8 are all valid alternatives for long term use.

Same goes with XPATH, as per newest JCR SPEC it simply should not be used. However, OAK still supports it.

As per JCR SPEC, you should write either JCR_SQL2 or JCR_JQOM.