VaRest icon indicating copy to clipboard operation
VaRest copied to clipboard

it's possible to send JSON with top-level array ?

Open iyzyken opened this issue 3 years ago • 3 comments

I need to send in JSON:

body = [{ 'text': 'shark', 'translation': 'tiburón' }]

iyzyken avatar Jun 12 '21 17:06 iyzyken

Hi @iyzyken ,

Currently it is not supported. You can read it with GetResponseValue(), but you can't send it.

ufna avatar Jun 13 '21 12:06 ufna

Hi @iyzyken ,

Currently it is not supported. You can read it with GetResponseValue(), but you can't send it.

could you elaborate on that or show an example because i am receiving something like that [{id:2,name:"gg"}] but can't seem to find a way to parse it using varest

Goldenboycoder avatar Jul 16 '21 19:07 Goldenboycoder

@Goldenboycoder , please check https://github.com/ufna/VaRest/issues/350#issuecomment-880093436

ufna avatar Jul 17 '21 19:07 ufna