com.thingworx.dsl.engine.adapters.ThingworxInfoTableAdapter cannot be cast to com.thingworx.types.InfoTable
This is the error message received
Hi Priyanshi, are you renaming the variable which hold the final result? Secondly, is this part of a service which you are writing? If yes, please make sure you save the entity before testing the service.
no the entity with final result is with name result only and I have also saved the service before testing the service
Priyanshi, going by the heading of this topic you wish to convert the JSON to Infotable for this I think you better off using FromJSON() and not GetJSON() since getJSON() is simply extracting the JSON information and not converting it to Infotable.
Just an additional info if you wish to convert Infotable into JSON use ToJSON()
Hope this helps.