eredo / dartson

Dartson is a Dart library that can be used to convert Dart objects into a JSON string.
MIT License
79 stars 29 forks source link

add double to transformer list #31

Closed rightisleft closed 8 years ago

rightisleft commented 8 years ago

Looks like double wasn't added to the list - this enables the 'parser simple' to pass using doubles

rightisleft commented 8 years ago

The error for #27 seems to have been caused when trying to serialize doubles. This resulted in an infinite loop. The solution is to check of the value is a simple type, if so - no further recursive serialization is needed.