views:

82

answers:

1

I being passed a object from javascript as JSON and it's type in Silverlight is of type System.Windows.Browser.ScriptObject.

How do I get the JSON representation from the script object?

Cheers

AWC

A: 

There is no native support for this in Silverlight. JSON.NET supports Silverlight though.

Alun Harford
I suggest you go look at the System.Json namespace before answering!
AWC
I may well be wrong (it wouldn't be the first time) but my understanding is that System.Json provides a parser to convert from a JSON string to a nicer object model. It doesn't support serializing an object to a string. If I am wrong, please post an answer to your own question.
Alun Harford