talentdeficit/jsx — pull request #46 by eskuat (2013-12-08 19:27:29+00:00)
Title: Allow integer object keys when converting term to json

Allow integer object keys when converting term to json i.e. automatic conversion from integer to binary.
Some existing implementations (Python, Ruby) tolerate integer keys by converting them to string automatically.
Example of what this patch allows to do:
```
2> jsx:encode([{123, [{456,789}]}]).
<<"{\"123\":{\"456\":789}}">>
3>
```

Conversion is not symmetric, works only for term to json direction.