The response Variablesproperty is a string and this is not very convenient: the proof is the addition of a getVariablesAsMap method in the java client.
The solution would be to add the same kind of facilities in the C# client: GetVariablesAsMapand GetVariablesAsType(names are the same as the java ones) that return respectively an IReadOnlyDictionary<string, object> and T.
Remaining questions are:
the choice of a JSON serializer i.e. Newtonsoft Json.NET vs MS System.Text.Json as we would add a new dependency to the client. For testing you use the 1st one.
and this dependency would be exposed because in the IReadOnlyDictionary<string, object>, the value could be a JObject.
The response
Variables
property is a string and this is not very convenient: the proof is the addition of agetVariablesAsMap
method in the java client.The solution would be to add the same kind of facilities in the C# client:
GetVariablesAsMap
andGetVariablesAsType
(names are the same as the java ones) that return respectively anIReadOnlyDictionary<string, object>
andT
.Remaining questions are:
IReadOnlyDictionary<string, object>
, the value could be aJObject
.I can make a PR if you agree.
Thank you