I have sample JSON where all the values for the keys are defined in regex as "#(value)" and the values are dervied from the data table in the feature file. (represented in Example in scenario outline) eg:- {"key": "#(value)"}
I have one of the record which is like A'BC but when I pass this as it is the JS is getting failed with error as : Missing close quote
Example:-
| Value |
| A'BCD |
I tried passing the value with single slash \ in between A and 'BC but it is adding the double slash in the constructed JSON request
JSON constructed : {"key": "A\'BCD"}
I need the the JSON to be like {"key" : "A'BCD"}
Anyone can help please?