Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

JSON error " expecting comma to separate Object entries"

Rajatlm10
New Contributor III
New Contributor III

Hi i am using the below updateAccount JSON. 

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xyz/Users/${account.customproperty5}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\": \"remove\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq , \"EXP_PROCESSOR_AUDIT\"]}]}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
404,
500,
501,
502,
503,
504
]
}
}
]
}

 

but i am getting the below Error. 

176]","status":"Failed"}]},"call1":{"message":"Unexpected character ('E' (code 69)): was expecting comma to separate Object entries\n at [Source: {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\": \"remove\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq , \"EXP_PROCESSOR_AUDIT\"]}]}; line: 1, column: 176]","status":"Failed"}}

 

I have tried with putting comma (,) as well after h eq operator but still its not working out. 

1 REPLY 1

rushikeshvartak
All-Star
All-Star

 

{
  "call": [
    {
      "name": "call1",
      "connection": "acctAuth",
      "url": "https://xyz/Users/${account.customproperty5}",
      "httpMethod": "PATCH",
      "httpParams": {
        "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
        "Operations": [
          {
            "op": "remove",
            "path": "urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq \"EXP_PROCESSOR_AUDIT\"]"
          }
        ]
      },
      "httpHeaders": {
        "Authorization": "${access_token}"
      },
      "httpContentType": "application/json",
      "successResponses": {
        "statusCode": [200]
      },
      "unsuccessResponses": {
        "statusCode": [400, 401, 404, 500, 501, 502, 503, 504]
      }
    }
  ]
}

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.