On Fri, May 22, 2009 at 6:55 PM, Nicholas Petrella <[email protected]>wrote:
> John and Kenneth, > > You mention using a pluggable json library for the parsing but am I safe in > assuming this means that the same library would be used to generate the json > in ruote-rest / ruote-kit. We have run into some issues when pulling down > json from ruote-rest with newlines being in the json string which causes > some issues with the libraries we are using to parse them. > > If this is the case, I am all for doing this (not necessarily the > dependancy on ActiveSupport 3, but rather being able to use whichever > json/xml libraries i like). > > My only other question is how you will manage to ensure compatibility > between libraries. How would you ensure the calls you make to one parsing > library are the same as other libraries that may have slightly different > APIs? > Hi Nic Good point you make, I'm feeling the same issue at the moment. My previous reply has the bulk of the info in on getting pluggable JSON backends in. As for testing, I think we'll rely on a good test suite to help keep the holes plugged. Additionally the OpenWFE::JSON utility class will expose a couple of convenience methods, but they'll be driven by an encode() and decode() method, which I'll map the the appropriate backend's methods for achieving the same. I know from time to time we'll be faced with bugs in the backends we use, but we'll have to deal with that upstream and make sure everyone is aware of the issue. I know personally that ActiveSupport's JSON helpers had a rough ride to where they are now, but they're making good progress on aligning it with the standards. It's not a small feat, I've got the local branches and will proceed to see how it pans out over the next couple of hours. Best -- Kenneth Kalmer [email protected] http://opensourcery.co.za @kennethkalmer --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
