StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.07k stars 749 forks source link

Parsing json output - Continued from #3878 #3883

Closed sumeetisp closed 6 years ago

sumeetisp commented 6 years ago

How to parse following,

 "published": {
        "status": "Entity successfully created",
        "ci_id": "{\"success\":true,\"id\":\"some text\",\"message\":\"Entity created successfuly\"}"
      }

I want to access <% $.ci_id.id%>

LindsayHill commented 6 years ago

Have you tried this syntax? https://docs.stackstorm.com/mistral_yaql.html#dictionaries

Also, rather than opening issues for usage questions, you may like to join the Slack community (https://stackstorm.com/community-signup)