How to configured success rule in services?

we want to configure success rule in services and also want to show some message in frontend instead of json.

if you configured blank in success rule then the api gives failure and also a error message was shown on frontend. if we configured a valid json like $.[0].response_message this will help us show a valid message on frontend.