Added debugging option to print JSON request bodies