I’m using a rest-api using php. Can someone tell me how to represent the below JSON format using php? The rest api requires this format to perform filtering.
–data-urlencode ‘where={“post”:{“__type”:”Pointer”,”className”:”Post”,”objectId”:”8TOXdXf3tz”}}’ \
json_decode that string for the exact array that will result in, but yip and array of arrays…
result:
So writing as an array in PHP:
Then json_encode would re-create the json…