Jump to content

Webservice JSON


voylinux

Recommended Posts

I am developing a module that will override some PS Webservice functionality and I am trying to guess how to make it return a JSON response.

 

I can see a some lines in PS WebserviceRequestCore that say:

$this->outputFormat = isset($params['output_format']) ? $params['output_format'] : $this->outputFormat;
// Set the render object to build the output on the asked format (XML, JSON, CSV, ...)
$this->objOutput->setObjectRender($this->getOutputObject($this->outputFormat));

But don't understand if this really works and how to make it arrive in the request.

Edited by voylinux (see edit history)
Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...