Rename encode_dict and decode_dict to json_encode and json_decode