Skip to main content
1-Visitor
Apr 5, 2019 9:36 AM UTC
Question

How To import JSON file to Thingworx

Hi,

 

I am new to the Thingworx. I have followed the https://developer.thingworx.com/en .

 

The example uses .xml file for import. Instead of that I want to use JSON file.

 

How can I do that? Please guide.

 

Regards,

shreekant

7 replies

22-Sapphire I
Apr 5, 2019 5:30 PM UTC

Please do a search through the Forum as there are plenty of articles on importing JSON

but similar to the XML example, there is a content loader function to retrieve JSON content

Thingworx will automatically make that into an object.

Please note if the JSON is an array at the top level, Thingworx will add a level called array

i.e. jsonObject.array.[your json structure here]

Translate
shreekant1-VisitorAuthor
1-Visitor
Apr 9, 2019 8:59 AM UTC

Hi,

Thanks for your reply. But as I said that I am a beginner to this, I am not sure from where to start. I have followed getting start guide and created dashboard on hosted server. Now I want to use same example but just want to add .json file instead of .xml file. It would be much helpful for me if you let me the steps for doing this.

 

Regards,

shreekant

Translate
5-Regular Member
Apr 9, 2019 3:24 PM UTC

Greetings,

 

Is there a particular TWX DevPortal guide with which you're having issue? 

 

Are there specific instructions that aren't working correctly? 

 

If so, please provide us with a URL of the guide in question, and we'd be happy to investigate. 

 

Thank you,

Jason

Translate