View Full Version : [CLOSED] Is there a way to serialize NodeCollection into objects?

May 29, 2013, 9:02 PM
NodeCollection has a ToJson method that will return a json string representation of the collection. I think it would be better if you have a method called ToJsonArray that returns a IEnumerable<Object>. This way, we dont have to decode it on the client.

May 30, 2013, 12:33 AM

It seems we don't have such method. But it possible to implement it using Newtonsoft JSON.NET. Here is the link: http://james.newtonking.com/projects/json/help/

Anyway, I don't quite understand why decoding is a problem in your case? Anyway, you should convert object to string to send it to the client-side.