using accepted feature request encode_json_text