{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/11242","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11242/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11242/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11242/events","html_url":"https://github.com/phalcon/cphalcon/issues/11242","id":122748653,"number":11242,"title":"Volt convert array to object when adding var","user":{"login":"Jurigag","id":10086991,"avatar_url":"https://avatars.githubusercontent.com/u/10086991?v=3","gravatar_id":"","url":"https://api.github.com/users/Jurigag","html_url":"https://github.com/Jurigag","followers_url":"https://api.github.com/users/Jurigag/followers","following_url":"https://api.github.com/users/Jurigag/following{/other_user}","gists_url":"https://api.github.com/users/Jurigag/gists{/gist_id}","starred_url":"https://api.github.com/users/Jurigag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jurigag/subscriptions","organizations_url":"https://api.github.com/users/Jurigag/orgs","repos_url":"https://api.github.com/users/Jurigag/repos","events_url":"https://api.github.com/users/Jurigag/events{/privacy}","received_events_url":"https://api.github.com/users/Jurigag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T14:48:22Z","updated_at":"2016-01-02T17:17:45Z","closed_at":null,"body":"Well, in twig you can access to array elements just by dot, its pretty nice and clean. Volt dont have such an option. But how about adding option to volt that when it's set to true it will do on our vars passed as array such a staff:\r\n\r\n```php\r\njson_decode(json_encode($array, FALSE));\r\n```\r\n\r\nIn that way we can access in volt all elements of array by dot, beacause its actually an object."},"comment":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/comments/168408296","html_url":"https://github.com/phalcon/cphalcon/issues/11242#issuecomment-168408296","issue_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11242","id":168408296,"user":{"login":"Kachit","id":503710,"avatar_url":"https://avatars.githubusercontent.com/u/503710?v=3","gravatar_id":"","url":"https://api.github.com/users/Kachit","html_url":"https://github.com/Kachit","followers_url":"https://api.github.com/users/Kachit/followers","following_url":"https://api.github.com/users/Kachit/following{/other_user}","gists_url":"https://api.github.com/users/Kachit/gists{/gist_id}","starred_url":"https://api.github.com/users/Kachit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kachit/subscriptions","organizations_url":"https://api.github.com/users/Kachit/orgs","repos_url":"https://api.github.com/users/Kachit/repos","events_url":"https://api.github.com/users/Kachit/events{/privacy}","received_events_url":"https://api.github.com/users/Kachit/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T17:17:45Z","updated_at":"2016-01-02T17:17:45Z","body":"maybe simple: (object) $array;"}}