Fix JSON output of posts