I have some problems with how to read from external json file in php.
I tried this solution:
$data = json_decode(file_get_contents('/data/usersdata.json'),TRUE);
print_r ($data);
In the usersdata.json now is:
{"name":"admin","password":"admin","permission":"admin"}
My problem is, I can't see anything on the screen, I want to put data from my json file to an $data array, or something to be usable.