use %g for json floating point output