switched json to pretty_generate