Refactored JSON formatter to allow custom selectors to be provided for record and collection parsing in REST responses.
Implemented selector support for XML formatter.
Refactored selector support and made it more DRY. Tweaked JSON parser to only add instance name when appropriate.
Refactored JSON selector to correctly parse collection and instance single objects. Added JSON test for Twitter dump.
Replaced puts call with a proper error message.
Added debug logging to options init for selectors.
Updated JSON test case and data to utilize the same selector as their XML counterparts.
Added support for selectors that include dashes. Refactored JSON selector to provide similar support to XML selector. Updated specs and added new cases to verify behavior.
Handle a string model correctly instead of assuming it is a model instance.
Refactored adapter to use the back-end name mapped by models for create, read, update, and delete operations. Updated spec cases to reflect correct formatter behavior.
Update attributes now uses mapping fields.
Added better support for hash properties when dumping/loading JSON.
Added test case for array properties.