Adding a JSON body writer