VS handling null values in the JSON request
search cancel

VS handling null values in the JSON request

book

Article ID: 274341

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

The VS has all of below request data as arguments in VSI and during playback getting a META match (which has Match Style=Operation) instead of a specific match because of the null values for DateIn and DateOut.

{
  "Name": "Test",
  "Number": "1234.123",
  "DateIn": null,
  "DateOut": null,
  "Guests": 2,
  "radius": "80",
  "desc": "Reservation"
}

Environment

Release : 10.7.2

Cause

Defect. The DateIn & DateOut arguments are not parsed because of the null values and are not shown in VSE-->Inspection View which made transaction to not match.

Resolution

If anyone facing the issue, please open a support ticket and refer DE578631 and request a patch.