Deprecated API

Avatar

Avatar
Validate 1
Level 2
yellar5366253
Level 2

Likes

7 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
yellar5366253
Level 2

Likes

7 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
yellar5366253
Level 2

08-10-2018

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

Thanks

Raazu G 

Replies

Avatar

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile
PuzanovsP
MVP

08-10-2018

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.

Regards,

Peter

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-10-2018

Hi,

For alternate options check Alternatives of Deprecated JSON API in AEM 6.3

Avatar

Avatar
Validate 1
Level 2
yellar5366253
Level 2

Likes

7 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
yellar5366253
Level 2

Likes

7 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
yellar5366253
Level 2

08-10-2018

Thanks Peter for your immediate response.