Forum Discussion

TSRAO's avatar
TSRAO
Occasional Contributor
2 years ago
Solved

Duplicate field 'Item' for `ObjectNode`: not allowed when `DeserializationFeature.FAIL_ON_READING_DU

Hello,

 

Can someone help me with any suggestion. I am seeing the below message on ReadyAPI response with HTTP status code 200. I am using the ReadyAPI version 3.40.2

Duplicate field 'Item' for `ObjectNode`: not allowed when `DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY` enabled

at [Source: (String) ....

  • TSRAO, most probably, the API response contains a duplicate key, e.g., the following JSON contains duplicate email keys:

     

    {
    "name": "Joe Doe",
    "email": "some@email.com",
    "email": "another@email.com"
    }

    There may be another reason, but that would need further details of your issue.

     

1 Reply

  • KarelHusa's avatar
    KarelHusa
    Champion Level 3

    TSRAO, most probably, the API response contains a duplicate key, e.g., the following JSON contains duplicate email keys:

     

    {
    "name": "Joe Doe",
    "email": "some@email.com",
    "email": "another@email.com"
    }

    There may be another reason, but that would need further details of your issue.