remove cache pages and pretty print JSON