On 11/23/2014 2:47 PM, Rowan Collins wrote:
For JSON, newlines aren't the delimiter you want, but with nested structures,
I'm not sure how you'd parse a partial structure anyway. Are there JSON
equivalents of SAX (event-based) parsers?
If JSON is encoded into another format, newlines can be a valid
delimiter. For example, JSON-Base64 uses newlines:
http://jb64.org/
JSON-Base64 is more for cross-application support where PHP isn't the
only language in the mix. If I'm moving data between two PHP hosts in a
migration scenario, I'll tend to use serialize() and Base64 encoding,
which preserves PHP objects across the network and requires less effort.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php