webservice search - fix bug with json encoding of object