需要将字符串解析为json格式
我有以下字符串解析为 JSON 并作为 post 请求发送。不确定执行此操作的最佳方法是什么:
开始=0&page_length=50&exclude_vehicle_category=%5B%5D&toll_non_toll=false&mode=%22detail_state_mileage_report%22&scope_kind=%22enterprise_group%22& ;scope_value=4317&scope_values=%7B%22enterprise_group%22%3A%204317%7D&start_date=%7B%22snap_unit%22%3A%20%22day%22%2C%20%22snap_direction%22%3A%20%22开始%22%7 D&end_date=%7B%7D&time_zone=%22EST%22&columns=%5B%22GROUPNAME%22%2C%20%22 VEHICLEID%22%2C%20%22VEHICLENAME%22%2C%20%22VEHICLETAG%22%2C%20%22VEHICLE_VIN%22%2C%20 %22TOTAL_DISTANCE_DRIVEN%22%2C%20%22TOTAL_DISTANCE_DRIVEN_OH%22%5D&着色=%5B%5D &sort=%5B%5B%22GROUPNAME%22%2C%20false%5D%2C%20%5B%22VEHICLEID%22%2C%20false%5D%5D
i have this following string to parse as JSON and send as post request. not sure what is the best way to do this:
start=0&page_length=50&exclude_vehicle_category=%5B%5D&toll_non_toll=false&mode=%22detail_state_mileage_report%22&scope_kind=%22enterprise_group%22&scope_value=4317&scope_values=%7B%22enterprise_group%22%3A%204317%7D&start_date=%7B%22snap_unit%22%3A%20%22day%22%2C%20%22snap_direction%22%3A%20%22beginning%22%7D&end_date=%7B%7D&time_zone=%22EST%22&columns=%5B%22GROUPNAME%22%2C%20%22VEHICLEID%22%2C%20%22VEHICLENAME%22%2C%20%22VEHICLETAG%22%2C%20%22VEHICLE_VIN%22%2C%20%22TOTAL_DISTANCE_DRIVEN%22%2C%20%22TOTAL_DISTANCE_DRIVEN_OH%22%5D&coloring=%5B%5D&sort=%5B%5B%22GROUPNAME%22%2C%20false%5D%2C%20%5B%22VEHICLEID%22%2C%20false%5D%5D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设
s
包含您的字符串:Say
s
contains your string: