I want to end up with a JSON object that looks like this:
{"$content-type": "inputparameter1","$content": "inputparameter2"}
where the "inputparameter" strings are supplied via a PowerApps trigger (text and text_1). the JSON object is a parameter in a subsequent action.
I'm using a Compose action with this function:
json(concat('{','"$content-type":"',triggerBody()?['text'],'","$content":"',triggerBody()?['text_1'],'"}'))
but it fails. If I take the $ characters out, it succeeds.
I've tried '"\$content-type and '"%"$"%content-type but can't get it to work.
How can I escape a $ character when constructing a JSON object?