Like JSON.parse(), but for Cardscript. And it supports YAML.
$ npm install cardscript-parser --saveconstparser=require('@wmfs/cardscript-parser')constcardscriptObject=parser(`{ "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Change me!", "color": "attention", "horizontalAlignment": "center" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.0" }`)$ npm test