bayashi / App-aki

The command-line data processor for web content
1 stars 0 forks source link

to treat simplest JSON correctly #2

Closed bayashi closed 11 years ago

bayashi commented 11 years ago

I don't know what is correct, but I want to support this.

$ aki http://api.twitter.com/1/help/test.json
JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at /usr/lib/perl5/site_perl/5.8.8/App/aki.pm line 22.

'http://api.twitter.com/1/help/test.json' responses like below:

"ok"
bayashi commented 11 years ago

I guess this is wrong JSON. via http://www.json.org/index.html

"ok"

I think It should be array or hash.

["ok"]