more standard JSON escape process ported from json11

  Related issue: #113