Tuesday, November 11, 2008

C#, Jayrock, Export JSON string

To export a .Net Class to JSON string, Jayrock needs both a public default constructor (constructor with no arguments) and public properties (with get and set) for all vaules you want to export.

Alternatively you can implement the IJsonExportable interface, which gives you full control over the export process.

No comments: