1: <?php
2:
3: /**
4: * TODO: Need to test this one first.
5: */
6: class RESTian_Application_Json_Parser extends RESTian_Parser_Base {
7: /**
8: * Returns an object or array of stdClass objects from a string containing valid JSON
9: *
10: * @param string $body
11: * @return array|object|void A(n array of) stdClass object(s) with structure dictated by the passed JSON string.
12: */
13: function parse( $body ) {
14: return json_decode( $body );
15: }
16: }
17: