Announcement

Collapse
No announcement yet.

[CLOSED] [#98] JSON.Parse<> to support non-primitive types

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [CLOSED] [#98] JSON.Parse<> to support non-primitive types

    Is there an ongoing effort to improve JSON.Parse<>, specifically, to support non-primitive types? Until that happens, what's the recommended workaround? Thanks.
    Last edited by Daniil; 2015-11-26 @ 09:10 AM.

    #2
    Hi @mod7503,

    Thank you for the request!

    There is already a GitHub issue and a couple of related forum threads. Though, no thread has been directly linked to the Issue. So, I'll do it for this thread.
    https://github.com/bridgedotnet/Bridge/issues/98

    Currently, JSON.Parse<> should be working for classes with properties of primitives types and no methods.
    http://forums.bridge.net/forum/commu...?p=186#post186

    The problem is also mentioned in this KB article that also covers a possible solution for more complicated classes which is to create an object manually for a raw data object.
    http://bridge.net/kb/work-with-data

    Enhanced support for deserializing custom types is still to be implemented and most like it is going to be slated for a future release.
    Last edited by geoffrey.mcgill; 2017-01-12 @ 06:06 AM.

    Comment


      #3
      Please use https://github.com/bridgedotnet/Bridge.Newtonsoft.Json.

      Comment

      Working...
      X