I am working with joomla k2 component and I am building another component based on it. Here I have a problem in accessing(parsing) k2 extra fields. Help will be appreciated.
The k2 extra field content in database is like this,
[{"id":"1","value":"500"},{"id":"2","value":"40Hrs"},{"id":"3","value":"1"}]
I searched k2 site and others and given answer as,
$this->item->extra_fields[0]->value; //needs to return 500
I tried in different ways but it wont work.