cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to convert Infotable into JSON in Java Extension

SathishkumarC
6-Contributor

How to convert Infotable into JSON in Java Extension

Hi,

 

How i can convert Infotable into JSON

Since toJSON() function Deprecated. no replacement

@Deprecated
 @ThingworxExtensionApiMethod(since={6,6},
                             deprecatedSince={8,4})
public org.json.JSONObject toJSON()   throws java.lang.Exception
Deprecated. no replacement
 
Any other methods available?
 
Regards,
Sathishkumar C.

 

4 REPLIES 4

Hi @SathishkumarC.

 

This article may provide some guidance even though it relates to a service.

 

Regards.

 

--Sharon

Thank you for reply.

 

I know this with Thingworx. But the same thing I am trying to use in Java extension it was telling "Deprecated". If I am continue to using the same method will I face any issue in future? 

slangley
23-Emerald II
(To:slangley)

Hi @SathishkumarC.

 

In some future release, deprecated extensions will be removed, but we do not have specifics on when that will occur.  That information will be detailed in the release notes for the relevant release to allow for modifications prior to upgrading.

 

Regards.

 

--Sharon

slangley
23-Emerald II
(To:slangley)

Hi @SathishkumarC.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon

Top Tags