Hi Mone ,

My Problem is in Feed simulator there are set of String arrays which is used to feed to client instead i need to request some Json service to get the JSON and to parse again i need to store as java arrays and pass to the client , if possible can u give me a sample coding example on this.


Quote Originally Posted by Mone
hi,

I'm not sure I understood your problem.

if you have an object you want to pass as json to the client you can simply pack it into a string on your data adapter and pass it as the value of a field; then you'll receive it as an update on your client where you'll have to deserialize it.

please note that doing so you’ll lose some of the optimizations offered by Lightstreamer protocol. For example, the merging algorithm (of the MERGE mode) is applied to the entire object instead of being applied to each single field, so that every time a property within the json object changes, the entire object is pushed to the client, not only the changed value.
A more efficient way would be to map each of the properties of the json object to single fields. This may or may not be feasible depending on how structured is the object.


please check also the Server-Side section of this blog post: http://goo.gl/a40yR
the approach shown is based on AMF objects, btw excluding the serialization process (ie the toAMF method) it applies to your case too.