andyet / thoonk.js

Persistent (and fast!) push feeds, queues, and jobs leveraging Redis
http://thoonk.com
Other
330 stars 27 forks source link

passing JSON as an item in job queue #19

Closed jfischl closed 12 years ago

jfischl commented 12 years ago

If I try to insert a JSON object into a job queue, it doesn't seem to make it out the other side correctly. I believe the issue is that it doesn't JSON.stringify/parse the item on the way in/out of the job queue. Is this supposed to work or am I misreading the documentation? I haven't looked but perhaps this is an issue with other types of feeds as well.

fritzy commented 12 years ago

The payloads are any string, so not really specific to JSON or anything else. You need to parse and stringify accordingly.