Update json.cpp

Double value conversion fixed.