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!

preguntada hace 3 meses80 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas