1

how to get json data from framework (Yii)

view story
linux-howto

http://stackoverflow.com – i'm trying to get json data from website that i build using Yii framework. when i open mozilla and i go to http://localhost/restayii/index.php/employee/getemployee?id it's showing employee json data. this is my employee jsondata : {"employee":[{"id":"1","departmentId":"1","firstName":"Hendy","lastName":"Nugraha","gender":"female","birth_date":"1987-03-16","marital_status":"Single","phone":"856439112","address":"Tiban Mutiara View ","email":"[email protected]","ext":"1","hireDate":"2012-06-30 00:00:00","leaveDate":"0000-00-00 00:00:00"},{"id":"2","departmentId":"2","firstName":"J (HowTos)