frank icon indicating copy to clipboard operation
frank copied to clipboard

json in request score can't be set as array

Open txthinking opened this issue 6 years ago • 1 comments

Describe actual behavior

json in request score can't be set as array.

What is your expected behavior

json in request score can be set as array.

Specifications like the version of the project, operating system, or hardware

Steps to reproduce the problem

url="https://httpbin.org"

POST /post Post json data
header["Accept"] = "application/json"
header["Content-Type"] = "application/json"
json = [1,2]
Response
must(status==200)

txthinking avatar May 16 '18 09:05 txthinking

Temporary solution:

url="https://httpbin.org"

POST /post Post json data
header["Accept"] = "application/json"
header["Content-Type"] = "application/json"
json = [1,2]
bodyRaw = JSON.stringify(json)
Response
must(status==200)

txthinking avatar May 16 '18 09:05 txthinking