Revert "using accepted feature request encode_json_text"

This reverts commit e8f4a5f7a8c062a42f898edd1155532ebfec0ac1.
using accepted feature request encode_json_text