equal
deleted
inserted
replaced
387 return false; |
387 return false; |
388 |
388 |
389 $contents =& $block[0]['value']; |
389 $contents =& $block[0]['value']; |
390 |
390 |
391 // Trim off all text before and after the starting and ending braces |
391 // Trim off all text before and after the starting and ending braces |
392 $contents = preg_replace('/^([^{]+)\{/', '{', $contents); |
392 $contents = enano_trim_json($contents); |
393 $contents = preg_replace('/\}([^}]+)$/', '}', $contents); |
|
394 |
393 |
395 // Correct syntax to be nice to the json parser |
394 // Correct syntax to be nice to the json parser |
396 $contents = enano_clean_json($contents); |
395 $contents = enano_clean_json($contents); |
397 |
396 |
398 try |
397 try |