System.Text.Json.JsonReaderException
Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 759 | BytePositionInLine: 19.
System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 759 | BytePositionInLine: 19.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)