Hello @Conor Atkins,
Greetings, for the day.
Welcome to Microsoft Q&A Platform! Thanks for reaching out.
It seems like you are having trouble returning a JSON response using the return action in a Logic App. Based on the error message you provided, it seems like there is an issue with the string interpolation segments in your response string.
To fix this issue, you can try using double quotes instead of single quotes around the expression in your response string. For example, you can change your response string to:
{"value": "@{outputs("Compose")}"}
This should allow the string interpolation to be evaluated correctly and return the JSON response you are expecting.
If you still encounter issues, you can try adding a "Parse JSON" action before the "Response" action to ensure that the output from the "Compose" action is in the correct format.
If you find the answer helpful, kindly click "Accept Answer" and upvote it. If you have any further questions or concerns, please feel free to reach out to us. We are happy to assist you.