This issue is not the same and questions/answers about $_POST do not apply to this question since no form is involved. (I am using file_get_contents)
I am using application/json to send POST variables and when i dump the headers the content is there (although it is a string and not a JSON or array for some reason):
var_dump(file_get_contents('php://input'));
results in:
string(77) "string(63) "{"job_uid": 12345, "dummy": 100}" "
the problem is this:
no matter what i do i cannot reference the data as a JSON or an ARRAY
i would like to use one of the following techniques to reference the vars:
$data->job_uid
// or
$data['job_uid']
i have tried json_encode and decode, explode, and every other idea
other than parsing the string manually every time i cannot seem to get to the vars and data easily and i cannot figure out why.
any ideas?