convert php file to json data