CL 6.0.2 JSON API Call

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CL 6.0.2 JSON API Call

  • Creator
    Topic
  • #55639
    tom robinson
    Participant

      We have a request to set up a Restful API call using JSON.  We are running Cloverleaf 6.0.2 with Web Services installed.  We understand JSON is not supported to 6.2, but wondering if anyone has had any success setting up a similar connection using TCL?   We have looked at possibly using the json2dict package.  We are running TCL 8.4 currently.  

      Hoping someone can share if they were able to make something similar work.

    Viewing 0 reply threads
    • Author
      Replies
      • #85987
        Rob Lindsey
        Participant

          We are on CL 6.1.1 which has TCL 8.5.

          I am actaully working on an interface right now using TCL to send a JSON msg via a tclCurl web service call to send Orders to a system and retrive results via another web service call to pull Results from the system.

          It has been a bit of a bumpy ride on the “sending” side becasue of how the TCL library of   ::json::write   treats the value side of the object.

          The json2dict library works very well.  One thing to look out for is if the json object is actaully an array.  You just need to create the proper foreach loop to make sure you get all of the information.

          Rob

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.