To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /json/reply/Search HTTP/1.1
Host: ws.patentstyret.no
Content-Type: application/json
Content-Length: length
{"SearchText":"String","MaximumSearchResults":0,"TrademarkText":"String","Applicant":"String","Status":"","DateFrom":"\/Date(-62135596800000-0000)\/","DateTo":"\/Date(-62135596800000-0000)\/","OrderBy":"Inndag","OrderDir":"desc","Page":0,"Language":"nb-NO"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"result_count":0,"page":0,"page_count":0,"total_result_count":"String","search_results":[],"status":"String"}