Fixing JSON visitor to add content-type when needed. Closes #200