Skip to main content
magical_Whirlwind16B7
Participant
December 28, 2017
Answered

Transform CFHTTP GET result to XML

  • December 28, 2017
  • 1 reply
  • 383 views

Hello

What is the easiest way to transform a cfhttp get result to xml?

I refer to a string like this:

{"ticker":{"base":"BTC","target":"NEO","price":"233.95972149","volume":"","change":"-0.55305476"},"timestamp":1514451062,"success":true,"error":""}

Would be happy to solve this issue

Thanks a lot

Thomas

    This topic has been closed for replies.
    Correct answer WolfShade

    What you present looks like a JSON string.  If you convert it to a JSON object (which is a struct) it should be simple to convert to XML.

    HTH,

    ^ _ ^

    1 reply

    WolfShade
    WolfShadeCorrect answer
    Legend
    December 28, 2017

    What you present looks like a JSON string.  If you convert it to a JSON object (which is a struct) it should be simple to convert to XML.

    HTH,

    ^ _ ^

    magical_Whirlwind16B7
    Participant
    December 28, 2017

    Thanks a lot!

    WolfShade
    Legend
    December 28, 2017

    Thank you for marking my answer as correct.  I do appreciate it.

    V/r,

    ^ _ ^