I have a database field with JSON arrays in it and when I read it only the first value is retrieved.
The map.inc.php section looks like this
'config' =>
array (
'dbtype' => 'text',
'phptype' => 'json',
'null' => false,
'default' => '',
)
and the data stored in this field is a simple JSON array like this:
["value1","value2","value3"]
I access the field this way:
$object->get('config')
and this returns an array with one entry max.
Can anybody help me with this?