Sending JSON from Java/Scala

I tried to use JSON and send it via the Java API: git://gist.github.com/1755734.git

Is this posible?

The JSON doc in this case is ignored and I get all results, the result
is the same when I leave out setSource completely.

On Feb 6, 3:07 pm, sun goo...@suncom.de wrote:

I tried to use JSON and send it via the Java API: git://gist.github.com/1755734.git

Is this posible?

The JSON doc in this case is ignored and I get all results, the result
is the same when I leave out setSource completely.

You need to un-nest the source one level:

https://gist.github.com/1757170