add function indent the json output better debug and logs