Highlighted

Transform CFHTTP GET result to XML

New Here ,
Dec 28, 2017

Copy link to clipboard

Copied

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

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,

^ _ ^

Views

144

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Transform CFHTTP GET result to XML

New Here ,
Dec 28, 2017

Copy link to clipboard

Copied

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

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,

^ _ ^

Views

145

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 28, 2017 0
LEGEND ,
Dec 28, 2017

Copy link to clipboard

Copied

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,

^ _ ^

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 28, 2017 1
New Here ,
Dec 28, 2017

Copy link to clipboard

Copied

Thanks a lot!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 28, 2017 0
LEGEND ,
Dec 28, 2017

Copy link to clipboard

Copied

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

V/r,

^ _ ^

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 28, 2017 0