Update json.cpp

Double value conversion fixed.
Merge pull request #29 from cydside/master

Update json.cpp