Closed bsapwindows closed 9 years ago
That's not valid json, I'm actually surprised that it was accepted by the api. You probably want to use a library to encode/decode the json data, but I'm not sure if bash is the most suitable language for this. Take a look at glot-cli, it might do what want.
On second thoughts don't use glot-cli yet, it has a serious design flaw. v1.2.0 should be fine.
Thanks! Didn't know there's already a cli tool. I'll give it a try :smile:
The json file I sent (you can see the request here):
Got this in response:
If I delete the
\n
inprintf("Hello World!\n");
, it will compile successfully. I think it's something to do with string processing.Thanks for creating glot BTW, it's a very cool project. I hope there will be an option to choose from different response formats, so I can get something like this without extra parsing:
I've tried to set header to
Content-type: text/plain
, it returned nothing...