escape xml
JSON media type
log JSON before sending
#84 JSON posting fixed