Alternatively:

jq "." posts.json > better.json

(to remove “useless use of cat”)