How can I print out the functions as a json string generated by the standard booking wizard?
I would like to use this to compare the content with the data that is passed via a silent booking. This way we can be sure the functions are configured the same.
Hi Mieke,
Bellow you can find a code example. Never tried to compare the functions like this, check if it works, otherwise implement an IEqualityComparer<in T>.
When testing your code you can also get a JSON from the ReservationInstance object that gets returned from the CreateNewBooking call.
The method ToJson() will return as JSON without formatting, which you could save in a temporary location. In your favorite JSON editor you can then format the file for easy comparison.