cancel
Showing results for 
Search instead for 
Did you mean: 

Need to change JSON response

swatifunde
Contributor

Hello Community,

I want to 9know how can I get below JSON response

{
“pvProjectID”: “2427827wj”,
“p6ActivityList”: [
{
“pvPprojectID”: “smhcvxsn,x”,
“pvActivityId”: “mxcxzvcb”,
“imo_Vorgangskategorie”: null,
“okz_Komponentenstruktur”: “01”,
“imo_Prozessnummer_Code”: “.Jnxbz1”,
“imo_ZugNummer”: “0m,xzn7”,
“imo_WagenNummer”: “Z”,
“activityName”: “xzb IT”,
“plannedFinishDate”: “2029-02-14T17:00:00.000”,
“blProjectFinish”: “2029-02-14T17:00:00.000”
},
{
“pvActivityId”: “FmzbxzcD”,
“imo_Vorgangskategorie”: null,
“okz_Komponentenstruktur”: “xzbvbzx1”,
“imo_Prozessnummer_Code”: “bxz0”,
“imo_ZugNummer”: “0z7”,
“imo_WagenNummer”: “Z”,
“activityName”: “cxcxzx g”,
“plannedFinishDate”: “2029-03-08T17:00:00.000”,
“blProjectFinish”: “2029-03-08T17:00:00.000”
}
],
“errorText”: “string”
}

Right now I managed to get response in below format
image

Can some one help me here

1 ACCEPTED SOLUTION

Apologies, the datatype is local datetime. That’s why.

I believe .toString() will do the job

View solution in original post

41 REPLIES 41

bojanvelevski
Valued Contributor

That’s how datetime, binary and some other datatypes are handled in Snaplogic. If you need plain string value for the date fields, you’ll need to stringify them.

$plannedFinishDate.toLocaleDateTimeString()

I already tried that option but getting Null values

Apologies, the datatype is local datetime. That’s why.

I believe .toString() will do the job

swatifunde
Contributor

Thanks a lot for your support 🙂

bojanvelevski
Valued Contributor

Anytime @swatifunde