JSON encode/parse. Docs available here - Minimized source here
Here is a basic example of using the JSONEncode and JSONParse functions with the YAHOO LogReader.