API Reference > bentleyjs-core > Utils > JsonUtils > JsonUtils.asDouble JsonUtils.asDouble Function Get a value as a double. asDouble(json: any, defaultVal: number = 0): number Parameter Type Description json any the input JSON object defaultVal number default value if json cannot be converted to double Returns - number the value of json as a double, or default value Defined in core/bentley/src/JsonUtils.ts Line 30 Last Updated: 15 June, 2021