I have an API for parsing barcodes, this was the advice from my previous topic.
Am I obliged to pass a JSON array if I want to pass one value?
Error message ThinkWise:
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/6d1c5835-b80e-41a2-a137-eac306693af5.png)
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/d40d5a02-aef4-4453-871b-4932c1dcbcf0.png)
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/dd9b33b0-8e3e-4a45-b2b6-af45f5e98852.png)
Postman:
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/ab90a588-69b4-4065-b705-b8d5196d2c9f.png)
I have an API for parsing barcodes, this was the advice from my previous topic.
Am I obliged to pass a JSON array if I want to pass one value?
Error message ThinkWise:
Postman:
Hi Rolf,
Could you try to add [ ] around the Content making it [{“barcode”:1234}] ? Looking at the error, it says it requires an array so I hope this will do the trick
I was already afraid of that. If there is no alternative I will modify my REST API to handle an array of strings.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.