get the JSON from php