Web Connection
wwJsonSerializer :: DeserializeJson vs. JsonDeserialize
Gravatar is a globally recognized avatar based on your email address. wwJsonSerializer :: DeserializeJson vs. JsonDeserialize
  Harvey Mushman
  All
  Feb 15, 2018 @ 08:36pm

Besides not having installed the newest version on Web Connection... so I can't yet test, what is the difference between these two functions ?

One is documented to use .NET and the other is silent on the issue. Is there a performance benefit and if so which is better. In other words when to use one of the other or why did you go the trouble to create yet another solution.

thanks...

Gravatar is a globally recognized avatar based on your email address. re: wwJsonSerializer :: DeserializeJson vs. JsonDeserialize
  Rick Strahl
  Harvey Mushman
  Feb 16, 2018 @ 01:26am

DeserializeJson() is a static function so it's easier to call - you don't have to call the instance. It simply calls JsonDeserialize() - IOW same code runs. THe difference is if you use the class you can customize the behavior a lot more.

I use the function frequently to do simple things like serializing a single value like a date or string which is easier to do with a single function for example in a Web Connection template or script.

+++ Rick ---

© 1996-2024