fixed bug when initializing from json; added init method with default float value 0.0