Parse JSON Activity - Results
Non planifiéeI am trying to use the Parse JSON activity to get a result from a Send Web Request activity in Workflow 5.41.0. The I would like to get just the “value” from the below JSON
Returned JSON:
{
"objectId": 0,
"name": "Pixel",
"value": "208.113",
"location": {
"x": 1042015.1059277221,
"y": 605146.9649561476,
"spatialReference": {
"wkt": "PROJCS[\"NAD_1983_StatePlane_Washington_South_FIPS_4602_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID…..
}
},
"properties": null,
"catalogItems": null,
"catalogItemVisibilities": [
]
}
-
=$parsejson.result.value will return the value
1 -
I don't think Parse Json is even necessary. If you set the WebRequest's expect property to json, you can read the value from $webRequest1.json.value
0 -
Thank you for the feedback. I was able to read directly from the WebRequest activity with the Expect property set to “json”
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires