elm-community / json-extra

Convenience functions for working with Json.
http://package.elm-lang.org/packages/elm-community/json-extra/latest
MIT License
37 stars 16 forks source link

stringInt and stringFloat #10

Closed paparga closed 7 years ago

paparga commented 7 years ago

Hi, Facebook API returns numbers as strings. example: { "spend": "2854.94", "actions": [ { "action_type": "comment", "value": "5786" } ] } I could add this functions (maybe with better names), what do you think?

lukewestby commented 7 years ago

Sounds good to me. Can you name them parseInt and parseFloat in your PR?

zwilias commented 7 years ago

Merged, thanks @paparga!