Added toJSONString function to format Values into Strings