Roll Your Own Web Service

Jan 3, 2012 at 1:59 PM

Hello,

  I created my own Web Service.  Is there a way to use SP Services to access it and return JSON.

Thanks

Coordinator
Jan 3, 2012 at 2:31 PM

zedekiah:

Not at the moment. I'm working on a new function which will take a flat XML nodeset and return JSON. (See: http://sympmarc.com/2011/12/30/adding-json-capability-to-spservices/)

However, if you've written your own Web Service, why not just emit JSON from it instead? 

M.

Jan 3, 2012 at 4:05 PM

It emits a myobject[] array.  Is that considered JSON?

Coordinator
Jan 3, 2012 at 5:01 PM

JSON is usually comprised of arrays, but you can read up onm all the details here. Generally speaking, it's made up of name/value pairs, whereas array elements are often just numbered rather than named.

M.