Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

AsInt32

func AsInt32() -> Result<int, JsonError>

Declaring type: JsonNumber
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonValue.rvn

Converts an integer token to Int32.

Return value

Result<Int32, JsonError>

The integer or NumberOutOfRange. Fractions and exponent notation are not coerced, even when mathematically integral.