Different search query result with json and pjson format

124
0
07-08-2022 07:58 PM
KazemiDavood
New Contributor II

Hi All

I came across a weird thing in portal rest and I'm trying to get the query of content based on the tags by below simple queries

https://{portal}portal/sharing/rest/search?f=pjson&q=tags:sample&bbox=&sortField=&sortOrder=&

Once the format is pjson is working fine and it return me the list of content as json but once I change the format to json, it doesn't return anything

Not working query:

https://{portal}portal/sharing/rest/search?f=json&q=tags:sample&bbox=&sortField=&sortOrder=&

I understand the difference of json and pjson but wondering how it affect the result and how we can resolve the issue to return the result with both json and pjson format.

0 Kudos
0 Replies