fix encode_json => encode