> For the complete documentation index, see [llms.txt](https://pps-docs.pebcak.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pps-docs.pebcak.de/code-examples/policy-to-json-echo-server.md).

# Policy to JSON echo server

**pps** provides you with a fully functional code example in its [Github Repository](https://github.com/wneessen/postfix-policy-server). The code example is a simple "*Policy data to JSON*" echo server.&#x20;

It accepts Postifx policy requests on the default listening address (`0.0.0.0:10005`), converts the provided [PolicySet](/api/policyset.md) into JSON, outputs this JSON to `STDOUT` and replies to Postfix with a custom `INFO`response. Check out the code on [Github](https://github.com/wneessen/postfix-policy-server/blob/main/example-code/echo-server/main.go).
