Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
openresty
Conversations
Labels
About
Test::Nginx如何比对json数据
48 views
Skip to first unread message
孙昊文
unread,
May 26, 2024, 10:55:16 PM
May 26
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
我在使用test::nginx进行测试时遇到了如下问题:
接口返回的是"{\"code\":0,\"message\":\"success\"}"格式的json数据,使用
--- response_body eval
"{\"code\":0,\"message\":\"success\"}"
进行比对时,由于json返回是乱序的,有时候是'{"code":0,"message":"success"}',导致匹配不能成功。我该如何解决这个问题呢。
Reply all
Reply to author
Forward
0 new messages