[jifty-devel] posting application/json to REST API

Matthew Lenz matthew at nocturnal.org
Tue Aug 7 16:25:00 EDT 2007


I'm trying to do the following:

json.txt:

{ 'contains':'smith' }

command line:

cat json.txt | POST -f -c 'application/json' \
http://localhost:8888/=/action/MyApp::Action::SearchAuthor.json

..

This results in every Author being returned rather than just those that
contain 'smith' in one of their fields.  I'm guessing that it just isn't
receiving the arguments.

Is this not the correct way to query with json formatted data?

-Matt



More information about the jifty-devel mailing list