Re: [PHP-DEV] SimpleXML and JSON

2023-08-15 Thread Niels Dossche
On 14/08/2023 23:56, Rowan Tommins wrote: > On 14 August 2023 13:40:40 BST, Niels Dossche wrote: >>And you load it into simpleXML, the result of calling >>json_encode($the_simplexml_object) > > My usual reaction to this is "why would you take an object designed for > accessing parts of an XML

Re: [PHP-DEV] SimpleXML and JSON

2023-08-14 Thread Rowan Tommins
On 14 August 2023 13:40:40 BST, Niels Dossche wrote: >And you load it into simpleXML, the result of calling json_encode($the_simplexml_object) My usual reaction to this is "why would you take an object designed for accessing parts of an XML document, and serialise it to JSON?" Often, the

[PHP-DEV] SimpleXML and JSON

2023-08-14 Thread Niels Dossche
Hi internals! While browsing through bugsnet I encountered this SimpleXML issue with 252 votes: https://bugs.php.net/bug.php?id=54632 TLDR: when you have a XML document (modified a bit from the example in the bugtracker): foobar And you load it into simpleXML, the result of calling