custom json output possible?

Mar 9, 2016 at 7:40 AM

I have a 3rd party jQuery plugin that allows for json input but requires a specific format structure. Is it possible in 2sxc to tell how to output the json or would i need to get the json output and then convert myself with js function before passing it to the plugin?

Mar 9, 2016 at 1:33 PM
You could do this by creating an own WebAPI. But in general I would recommend that you do this transformation in JavaScript - it's usually much easier to develop and debug and improvise. So I recommend that
  1. the standard plugin asks your JS for the data
  2. your js asks the REST-api of 2sxc
  3. 2sxc sends the standard response
  4. your js receives the data, transforms for the js
Mar 10, 2016 at 8:43 AM
I figured as much but thanks for the confirmation