array to CArrayDataProvider

have an array with objects, how can convert it to carraydataprovider

is it possible?

array looks like:




Array(

[0] => stdClass Object (

  [item] => string

  [name] => string

  [attributes] => Array (

     [0] => stdClass Object (

          [attr1] => string

          [attr2] => string

  )

)

)



Did you find out how to handle this?

$obj = json_decode($jsonObject);

$obj->Object->item;