Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for other data types -- Guid, DateTime, etc. #3

Open
GoogleCodeExporter opened this issue Jun 30, 2015 · 1 comment
Open

Support for other data types -- Guid, DateTime, etc. #3

GoogleCodeExporter opened this issue Jun 30, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Support for other standard system value types -- Guid and DateTime, for
example -- is not presently handled within the library.  The current
practice is to add support for these types in usage of the library, i.e.
add a guid to a JSONValueCollection as a JSONStringValue.

There is a convenience factor in having a default handling for certain
types, but there also needs to be a way to override the default handling. 
For instance, the guid can also be handled as a byte array, which would
emit different JSON output vs. handling as a string.

Support needs to be added to allow default json formatting as well as a
capacity to override json formatting.

Original issue reported on code.google.com by jeff.rod...@gmail.com on 30 Jul 2007 at 5:46

@GoogleCodeExporter
Copy link
Author

Exploring different ways for this to be implemented in a pluggable way for 
inheritors
to expand.  At present, I'm exploring a system involving an ICustomFormatter
interface
(http://msdn2.microsoft.com/en-us/library/system.icustomformatter(vs.80).aspx), 
where
the base JSONValue objects would utilize objects implementing ICustomFormatter 
to
handle rendering.

This would allow for a pluggable format, but would also increase complexity of 
the
underlying objects.  This complexity is valuable to those who use JSONReflector,
which would most likely require rendering control for those types not 
represented in
the base JSONSharp library.

More later....

Original comment by jeff.rod...@gmail.com on 3 Aug 2007 at 5:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant