JSON Deserialization Error w/Null values

JSON Deserialization Error w/Null values

Comments

  • I get the following error trying to deserialize a JSON response from an API. A null value is an acceptable response with this API. How do I resolve this error?
    Error converting value {null} to type System.DateTime. Path [0].finalPortPredictiveArrivalUtc, line 1, position 314. ---> System.InvalidCastException: Null object cannot be converted to a value type.

  • An On Exception outcome path from the step, Object Is Null step, or a Catch Outcome/Catch Exception step with specified output paths and data to catch may help you get around that.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!