예제 #1
0
 /**
  * Decodes the specified JSON string into an native PHP type.
  *
  * @codeCoverageIgnore
  * @param string $str JSON string to parse.
  * @return Mixed Native PHP type based on JSON data.
  */
 public static function decode($str)
 {
     if (function_exists('json_decode')) {
         return json_decode($str);
     }
     // Fall back to custom JsonDecoder logic
     return MOXMAN_Util_JsonDecoder::decode($str);
 }