JSON saved in attributes has escapes added to quotation marks causing it to not be valid

0

Hello,

I am trying to remove the need for a Lambda to run on every call that is pulling a list from DynamoDB and converting it into a JSON structure to populate a dropdown in a view. I have created a Lambda that automatically updates and publishes a module with the new JSON string in a "set attribute" block.

When I view the attribute block, it shows it as it should be, with the quotes unescaped. Screenshot of attribute block

But when I look in cloudwatch logs, it has the quotes escaped. Screenshot of log

This is causing the view to not display, and it just hangs on "loading view" until it times out. Is there a way to either make it so connect doesn't escape the quotes when it goes to save the attribute, or a better way to update a saved string on a schedule.

Thank you in advance for your help!

demandé il y a 3 mois80 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions