Forum Discussion
richie
Community Hero
Hey harishlean
ok - so your json is actually malformed. This is definitely a defect and as nmrao said, you will need raising with your developers.
As I said previously - it is possible to alter your response before you get the chance to assert/property transfer using an event handler, but due to the fact you have a duplicate, you cant use jsonpath to identify and remove the erroneous info and so this is beyond my groovy skills - I only know the basic stuff that Rao's taught me!
One of the groovy experts on here might be able to help - but I kinda think you'd be wasting your time as the payload is defective.
Makes more sense to get the payload fixed first.
Cheers,
Rich
sonya_m
3 years agoSmartBear Alumni (Retired)
Related Content
- 2 years agoTestQA1
- 5 years agokamserg1608