JSON all the XML all the things
2015-06-18 01:36:16.200504+02 by Dan Lyke 6 comments
Amazon's new API format: XML wrapped in JSON. https://payments.amazon.com/do...on/automatic/201752090#201757720
2015-06-18 01:36:16.200504+02 by Dan Lyke 6 comments
Amazon's new API format: XML wrapped in JSON. https://payments.amazon.com/do...on/automatic/201752090#201757720
[ related topics: Web development Books Content Management Invention and Design ]
comments in ascending chronological order (reverse):
#Comment Re: JSON all the XML all the things made: 2015-06-18 03:59:14.107083+02 by: meuon
I was hoping you were kidding and this was a joke: Then I saw it.
#Comment Re: JSON all the XML all the things made: 2015-06-18 04:07:13.644317+02 by: Jack William Bell
What he said...
How do you parse it?
#Comment Re: JSON all the XML all the things made: 2015-06-18 15:16:24.293693+02 by: Dan Lyke [edit history]
You parse it with a regular expression, the same way you parse any XML...
#Comment Re: JSON all the XML all the things made: 2015-06-18 16:17:36.477775+02 by: meuon
Laughing. At some point it has JSON+XML embedded in JSON. And the XML is not very clean. I'd be cutting it into chunks and fixing it with RegEx's.. and then MAYBE parse the chunks with "json_decode" and an XML parser, but I'd be tempted to just suck out what I want with some logic and RegEx's without ever trying to fix it.
#Comment Re: JSON all the XML all the things made: 2015-06-18 18:37:57.32509+02 by: Dan Lyke
The good news is that at least it's apparently not some sort of gawdawful pseudo-XML-ish abomination of a thing like Apache config files or Freeswitch outputs use.
#Comment Re: JSON all the XML all the things made: 2015-06-21 16:12:45.515583+02 by: concept14
At least it can be parsed with open source tools, unlike what somebody at my work once proposed: JSON in Excel spreadsheet cells.
We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.
Flutterby™ is a trademark claimed by
Dan Lyke for the web publications at www.flutterby.com and www.flutterby.net.