API Reference > bentleyjs-core > Utils > JsonUtils > JsonUtils.asInt JsonUtils.asInt Function Get a value as an integer. asInt(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 integer Returns - number the value of json as an integer, or default value Defined in core/bentley/src/JsonUtils.ts Line 24 Last Updated: 11 June, 2024