Question: I have to parse values from a json string like this:

```
[{"type":"list","value":["A","B"],"field":"scheda"}] 

```

How can I do that using PHP function `json_decode`?

For example I want print:

```
field = "scheda"
values = "A,B"

```

Answer: 
```
$json = json_decode('[{"type":"list","value":["A","B"],"field":"scheda"}]');
print 'field = "'.$json[0]->field.'"'."\n";
print 'values = "'.implode(",",$json[0]->value).'"'."\n";

```
If you can't use `json_decode()`, why not try a class?

For instance, something like... <http://www.phpclasses.org/package/4205-PHP-Serialize-and-unserialize-values-in-JSON-format.html>