Sql server json escape double quote. write(str), I used output_f.