added an extension class for json net serialization