Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Fetch data from Codeigniter #26804

    @Shashi Ranjan , If like that, How can i convert my json_encode() from :

    
    [{“jumlah_berita”:2,”nama_kategori”:”Music”},{“jumlah_berita”:1,”nama_kategori”:”Sport”},{“jumlah_berita”:1,”nama_kategori”:”Agama”},{“jumlah_berita”:0,”nama_kategori”:”Teknologi”},{“jumlah_berita”:1,”nama_kategori”:”Pendidikan”},{“jumlah_berita”:0,”nama_kategori”:”Cinta”},{“jumlah_berita”:0,”nama_kategori”:”coba test”}]
    

    To :

    
    [
    {y:2,label:"Music"},
    {y:1,label:"Sport"},
    {y:1,label:"Agama"},
    {y:0,label:"Teknologi"},
    {y:2,label:"Pendidikan"},
    ]
    

    Thanks

    • This reply was modified 10 months, 4 weeks ago by zeffry.
Viewing 1 post (of 1 total)