Python Replace Class Method Json Viewer Formatter