Sending JSON to a firestore DB

Hello!

Goal:

  • Update my firestore DB with a well formatted data.

What I have right now in firestore:
image

I can then see that data in a retool table:
image

And then I try to save the exact same information:
image

But then I get this in firestore:
image

I tried to transform the data into Json before updating firebase, but then I get this:
image

Still not what I wanted.

How can I add the data back to it's original format in firebase?

Thank you in advance.

Hey @pedrocarloto!

Can you try passing {{guessWhatQuestionsTable.seelctedRow.data.options}} without wrapping it in quotes? It looks like either way the value is being converted to a string before being passed to firebase, passing an object directly might prevent that:

1 Like

Thank you so much @Kabirdas!

Such a simple mistake that was causing so much trouble!