Closed cbean-ciee closed 7 years ago
http://stackoverflow.com/questions/14886800/convert-jobject-into-dictionarystring-object-is-it-possible Performing this first is probably a better option. If M# receives a Dictionary<string, object>
, it will deal work it.
Interesting. Thanks! I'll give that a try.
It worked great. Thank you for the suggestion.
I've found this library enormously useful and am currently using it from PowerShell to template some emails. I am able to marshal data between PowerShell and C# using json, but unfortunately the if-condition doesn't work with dynamic Newtonsoft.Json types.
I've added support for Newtonsoft.Json to the ConditionTagDefinition class using the dynamic keyword to avoid adding a dependency to the main assembly.
These changes allow the following (see JsonIfTests.cs for more possibilities):