add multi json for options dumping in post request

options were not being handled correctly since they were not escaped
properly.