Question

4
Replies
1184
Views
Sowjanya Laxmi Gadi (SowjanyaLaxmiG2267)
Infosys

Infosys
AU
SowjanyaLaxmiG2267 Member since 2017 34 posts
Infosys
Posted: February 5, 2018
Last activity: February 6, 2018
Posted: 5 Feb 2018 5:30 EST
Last activity: 6 Feb 2018 7:17 EST
Closed

Issue in converting Pagelist in to proper JSON format in Pega 6.2

Hi All,

We are getting the below message as response : Invalid JSON: Unexpected token { in JSON at position 37 . We are connecting to external system using Connect-Rest.

The expected request format is :

"test":[
{
"test1":"1234","test2":"5678"}
]

but request is forming in this way :

"test":{{ test:

[{"test1":"1234","test2":"5678"

}]}}

it is clear that test pagelist is not being converted to JSON array properly not sure why.

Can anyone please help and also we are using Map From Key as JSON only.

Regards,

Sowjanya

Low-Code App Development
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.