Hi,
Lightstreamer does not directly handle objects:
Server to client you send a list of name-value pairs;
Client to server you send a string to be interpreted by the adapter.
You can certainly wrap you objects doing a JSON stringify but, for the server to client case, it is better to stick as much as possible to the name-value pairs to gain in performance.
We have several examples that show bi-directional communication using Lightstreamer, the simplest one is probably the Chat demo:
Adapter:
https://github.com/Weswit/Lightstreamer-example-Chat-adapter-java
Client:
https://github.com/Weswit/Lightstreamer-example-Chat-client-javascript
(if you prefer to keep JavaScript on the server-side take a look at this:
https://github.com/Weswit/Lightstreamer-example-Chat-adapter-node )