• Is there a way to grab a JSON object that’s being passed into a Controller, rather than post/get request fields?

    When I dump out $json_api->query at the very beginning of getting the request in, I don’t see anything in there other than the read_more and date_format.

    When I dump out $_REQUEST it’s blank.

    Any thoughts or suggestions on this? Thanks so much!!

    https://wordpress.org/plugins/json-api/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jason Resnick

    (@rezzz)

    We shifted direction a bit and throwing the JSON into a param on the client side. Then in the controller grabbing that param and doing what we need to.

    Thread Starter Jason Resnick

    (@rezzz)

    We shifted direction a bit and throwing the JSON into a param on the client side. Then in the controller grabbing that param and doing what we need to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing JSON into a Controller to be processed’ is closed to new replies.