Sending JSON from Java/Scala


(sun) #1

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.


(Eric Jain) #2

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


(system) #3