@@ -47,8 +47,9 @@ public List<Result> LoadContextMenus(Result selectedResult)
47
47
}
48
48
}
49
49
50
- private static readonly JsonSerializerOptions _options = new ( )
50
+ private static readonly JsonSerializerOptions options = new ( )
51
51
{
52
+ PropertyNameCaseInsensitive = true ,
52
53
Converters =
53
54
{
54
55
new JsonObjectConverter ( )
@@ -60,7 +61,7 @@ private async Task<List<Result>> DeserializedResultAsync(Stream output)
60
61
if ( output == Stream . Null ) return null ;
61
62
62
63
var queryResponseModel = await
63
- JsonSerializer . DeserializeAsync < JsonRPCQueryResponseModel > ( output , _options ) ;
64
+ JsonSerializer . DeserializeAsync < JsonRPCQueryResponseModel > ( output , options ) ;
64
65
65
66
return ParseResults ( queryResponseModel ) ;
66
67
}
@@ -70,7 +71,7 @@ private List<Result> DeserializedResult(string output)
70
71
if ( string . IsNullOrEmpty ( output ) ) return null ;
71
72
72
73
var queryResponseModel =
73
- JsonSerializer . Deserialize < JsonRPCQueryResponseModel > ( output , _options ) ;
74
+ JsonSerializer . Deserialize < JsonRPCQueryResponseModel > ( output , options ) ;
74
75
return ParseResults ( queryResponseModel ) ;
75
76
}
76
77
@@ -110,7 +111,7 @@ private List<Result> ParseResults(JsonRPCQueryResponseModel queryResponseModel)
110
111
return ! result . JsonRPCAction . DontHideAfterAction ;
111
112
}
112
113
113
- var jsonRpcRequestModel = JsonSerializer . Deserialize < JsonRPCRequestModel > ( actionResponse , _options ) ;
114
+ var jsonRpcRequestModel = JsonSerializer . Deserialize < JsonRPCRequestModel > ( actionResponse , options ) ;
114
115
115
116
if ( jsonRpcRequestModel ? . Method ? . StartsWith ( "Flow.Launcher." ) ?? false )
116
117
{
0 commit comments