jolleekin / jsonx

An extended JSON library that supports the encoding and decoding of arbitrary objects.
BSD 2-Clause "Simplified" License
11 stars 6 forks source link

Add a global JSONX constant just like dart:convert's JSON #14

Open stevenroose opened 8 years ago

stevenroose commented 8 years ago

In fact after this change the global encode() and decode() methods should be made private as well. They can be replaced with JSONX.encode() and JSONX.decode().

jolleekin commented 8 years ago

This is not working as T in JsonxCodec is now dynamic rather than null. I'll change the top level decode to check if type is null or dynamic.

P/S: Following the new coding guidelines, constants should be lowercase.