How to get the json for a searchrequest

Is there a way to get the json string for a SearchRequest?

Thanks!