write_json support; support of passing headers in all write helpers