search results in JSON format I have a website built on drupal with search functionality. When I search for example for "test" the link of the search is displayed like search/node/test

Is there any possibility that if I call search/node/test?json or search/node/test/json the returned page would be plain text in json format of node ids ?
Try Services Search &amp; Services module. Using these module you can expose search results as JSON.

Another option is Views Datasource module. Construct a page view which accepts search term as an argument and displays search results in JSON format.