O
oedev
Guest
Hi All, I'm looking to use the Newtonsoft JSON serialisation libaray ( http://www.newtonsoft.com/json ) to serialise an Openedge object to JSON. The main method to serialise to JSON expects a System.Object parameter ( http://www.newtonsoft.com/json/help/html/SerializingJSON.htm ), so the class that I'm instantiating my object from inherits from System.Object; CLASS ScreenUsage INHERITS System.Object: However, when I serialise my object and message out the results, I get some very odd looking content; --------------------------- Message --------------------------- {"PHH":{"Handle":31528552,"IsAlive":true,"OpaqueId":1002}} --------------------------- OK --------------------------- 1 - I'm assuming when I cast to System.Object, the resultant object only contains properties from SystemObject class and not my ScreenUsage class? 2 - Is there any other was of passing a System.Object type to the method so that I can all my properties serialised? Thanks!
Continue reading...
Continue reading...