The JSON stuff is mostly just an AST and encoding/decoding from the JSON wire format is almost just an addon. Then, it would be a matter of adding AST objects for those new things. Could be a use for phantom types ;-)
I'd be interested to hear Joni's view on how it might fit, since he's the most familiar. -Ross On Mar 5, 2010, at 1:26 PM, Tim Nelson wrote: > I definitely agree with keeping the BSON code separate or possibly > having a strict JSON mode. > > Tim > > On Fri, Mar 5, 2010 at 12:13 PM, Timothy Perrett > <[email protected]> wrote: >> Probably a sub-ordinate module would be preferable... one that builds on >> the lift-json stuff and doesn't pollute the "normal" JSON usage. >> >> Joni, what are your thoughts? >> >> Cheers, Tim >> >> On 5 Mar 2010, at 17:59, Tim Nelson wrote: >> >>> I finally had the opportunity to look into the couchdb code and I must >>> say it is rather impressive. >>> >>> I would like to utilize the code in JSONRecord.scala in scamongo [1]. >>> However, MongoDB uses a variation of JSON they call BSON, which they >>> actually just published a spec [2] for, due to interest outside of >>> MongoDB. Basically, it adds support for date, ObjectId [3], binary >>> data, regular expressions, and code (JavaScript) data types. >>> >>> My question is, what would it take to add support to lift-json for >>> these other data types? Is this even feasible? >>> >>> Thanks, >>> Tim >>> >>> >>> [1] http://github.com/eltimn/scamongo >>> [2] http://bsonspec.org/ >>> [3] http://www.mongodb.org/display/DOCS/Object+IDs >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Lift" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/liftweb?hl=en. >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Lift" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/liftweb?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
