Rest API vs JSONv2

katakrokers
Tera Expert

Dear Development community,

currently we have the BPPM process running in our configuration items using JSONv2 as web service.

I'd like to know what are the difference between using the REST API and JSONv2, the pros and cons of using those different web services and why we should use either method.

Below you can find the wiki entries related with both methods:

REST API - ServiceNow Wiki

JSONv2 Web Service - ServiceNow Wiki

Thanks in advance for your points of view.

Best regards

Alex.-

1 ACCEPTED SOLUTION

Jace Benson
Mega Sage

JSONv2 was something Servicenow created before the REST API.



The JSONv2 processor handles things in the default semaphore pool (same pool your users using the GUI stuff happens).


The JSONv2 processor has no versioning, I don't think they've made changes to it but its not versioned static.   I'd avoid it mainly for semaphore pool usage.



Ther REST API has it's own semaphore pool separate from the default pool, also it can be referenced to v1/v2 or no version which means use latest/greatest.


View solution in original post

2 REPLIES 2

Jace Benson
Mega Sage

JSONv2 was something Servicenow created before the REST API.



The JSONv2 processor handles things in the default semaphore pool (same pool your users using the GUI stuff happens).


The JSONv2 processor has no versioning, I don't think they've made changes to it but its not versioned static.   I'd avoid it mainly for semaphore pool usage.



Ther REST API has it's own semaphore pool separate from the default pool, also it can be referenced to v1/v2 or no version which means use latest/greatest.


Thanks for that information Jace, it's very appreciated.