2 Replies Latest reply on Dec 7, 2015 5:03 PM by ngarner-2 RSS
    adamlev Explorer

    How to format json input/output to ThingWorx REST API calls?

    I am starting work with the REST API.  For now, I am just sending URLs to the platform using a chrome extension - not creating a real application yet.


    Many of the services and other REST API calls require json input.  Much of this isn't simple name/value pairs, but may be complex data shapes, data tables, file, or image input.


    How do I create the properly-formatted .json file for the service to work, especially when dealing with encoded images?


    Once I get the result of the service, how do I parse out the encoded images, like the one from the the getAvatar service into something useful?