With these new changes to API, how exactly this works

Thanks! Yes it works. I was so close. I earlier used json_decode, but removed and did not put it back -.-