We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (json["entries"] is JArray and [var first, ..]) { Console.WriteLine(first["message"]); }
{ "return": { "status": 200, "message": "Approved" }, "entries": [ { "messageId": 1466447495, "message": "Your verification code: 23298", "status": 5, "statusText": "Sent", "sender": "1000551451", "receptor": "918181818181818181", "date": 1701615164 } ] }
Running successfully
Unhandled exception. System.ArgumentException: Accessed JArray values with invalid key value: 0. Int32 array index expected.
// Your calls to Newtonsoft.Json here
dotnet/csharplang#8535 (reply in thread)
The text was updated successfully, but these errors were encountered:
and , i think can add this int.CreateChecked()
int.CreateChecked()
Sorry, something went wrong.
No branches or pull requests
Source/destination types
Source/destination JSON
Expected behavior
Running successfully
Actual behavior
Unhandled exception. System.ArgumentException: Accessed JArray values with invalid key value: 0. Int32 array index expected.
Steps to reproduce
// Your calls to Newtonsoft.Json here
dotnet/csharplang#8535 (reply in thread)
The text was updated successfully, but these errors were encountered: