# 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](https://pps-docs.pebcak.de/api/policyset) 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).
