Skip to main content
magical_Whirlwind16B7
Participant
Dec 28, 2017 8:55 AM UTC
Answered

Transform CFHTTP GET result to XML

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 is closed to new replies. Start a new post to keep the conversation going.
    WolfShade
    WolfShadeCorrect answer
    Legend
    Dec 28, 2017 2:09 PM UTC

    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,

    ^ _ ^

    3 replies

    WolfShade
    WolfShadeCorrect answer
    Legend
    Dec 28, 2017 2:09 PM UTC

    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,

    ^ _ ^

    Translate
    magical_Whirlwind16B7
    Participant
    Dec 28, 2017 4:52 PM UTC

    Thanks a lot!

    Translate
    WolfShade
    Legend
    Dec 28, 2017 5:49 PM UTC

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

    V/r,

    ^ _ ^

    Translate