I can't seem to create a JSON object in a server action?

Hi,

I can’t seem to create a JSON object variable inside a server action. How to I put “city” inside “data”?

The “Data Type” reverts to “Text” if I click away and save (and schema defined in “Define Schema” is lost too).

Thanks buddies!

P.S.: NodeJS

Edit: The end goal is to pass this “data” object to the view (as Server Side Data)

Maybe try to call it something else than “data” as it is a too common used name and can override others.