/wp-content/plugins/rob-rat-out-blocker directory, or install the plugin through the WordPress plugins screen directly.You can use for that Log HTTP Requests plugin
You should put (if you need it) JSON encoded string. Then you say to plugin how to represent response format and it convert your string in required format.
Plugin can convert your answer to array, object or leave string as is