GoldRepublic/Structr — pull request #1 by rpkamp (2012-03-17 02:26:37+00:00)
Title: More JSON functionality

Added own json_decode as a static method of Structr, and added isJsonList and isJsonMap so we can easily support partial JSON, as is shown in the test:

```php
/**
* Partially JSON
*/
public function testPartialJson()
{
$c = array('d', 'e');
$array = array('a'=>'a', 'b'=>$c);
$input = array('a'=>'a', 'b'=>json_encode($c));

$result = Structr::ize($input)
->isMap()
->key('a')
->isString()->end()
->endKey()
->key('b')
->isJsonList()
->item()
->isString()->end()
->endItem()
->end()
->endKey()
->run();

$this->assertSame($array, $result);
}
```