Json.NET + Medium Trust

Jan 19, 2010 at 12:33 AM
Edited Jan 19, 2010 at 12:36 AM

Is it possible to run Json.NET in a medium trust environment? I've been playing around a bit with integrating Json.NET and have run into a couple of issues concerning reflection and the fact that my environment is set to Medium Trust. Thanks for any help!

Best Regards,

Matthew Kimber


P.S. - I should add that I am only serializing an object using JsonConvert.SerializeObject(...).

Jan 26, 2010 at 3:26 PM

I am experiencing the same problem. The (shared) host provider doesn't allow full trust. Any ideas would be great! Thanks a lot.




Jan 26, 2010 at 4:06 PM

What I've ended up doing is converting my object tree manually using the JsonTextWriter. It was a lot easier than I thought it would be.



Matthew Kimber

Jan 27, 2010 at 4:49 AM

Thanks for the info. Will try this out :-)