Skip to content

Commit

Permalink
Fix casting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng committed Apr 19, 2022
1 parent 269e572 commit 7b06dce
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class TrustedJsonFactory : JsonFactory
public override Dictionary<string, object> Create(string json)
{
Dictionary<string, object> result =
(Dictionary<string, object>)JsonConvert.DeserializeObject(
json);
JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
return result;
}

Expand Down

0 comments on commit 7b06dce

Please sign in to comment.