-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hi,
When I have response containing a date on the form yyyy-mm-dd this is automatically transformed to a date, even without a proper Date.parse transformer.
I believe that it should be up to the developer to decide if the dates should be transformed or not, do you guys agree with me? And I also believe that this issue is created buy the Crack JSON parser, perhaps you can use another one if you? WebMock recently had the same problem, and they switched to their own version of Crack. See bblimke/webmock@772585e
This is an example of this behavior:
require 'crack/json'
puts Crack::JSON.parse('{"date":"2010-01-01"}')
Thanks for a great gem, looking forward to use this in my project!
Metadata
Metadata
Assignees
Labels
No labels