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

How to convert Infotable into JSON in Java Extension

SathishkumarC
Regular Member

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

Re: How to convert Infotable into JSON in Java Extension

Hi @SathishkumarC.

 

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

 

Regards.

 

--Sharon

Re: How to convert Infotable into JSON in Java Extension

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? 

Re: How to convert Infotable into JSON in Java Extension

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

Re: How to convert Infotable into JSON in Java Extension

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

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.