Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

how to pass array of json #43

Open
jAddict7 opened this issue Mar 22, 2014 · 1 comment
Open

how to pass array of json #43

jAddict7 opened this issue Mar 22, 2014 · 1 comment

Comments

@jAddict7
Copy link

Hi I tried to pass this request and failed,

post test --data "{id: '11', name: [{'test', 'test1', 'test2'}]}"
post test --data "{id: '11', name: {'test', 'test1', 'test2'}}"

and I tried passing many combinations all in vain. How to pass a json array inside another json array in request

@jbrisbin
Copy link
Contributor

This JSON isn't properly formatted. An array in JSON uses square brackets:

post test --data "{id: '11', name: ['test', 'test1', 'test2']}"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants