Hi,
I was trying to add an object to one of my tables using AI to test it out. While doing that, it kept adding it as "json", not an object. When asked to explain, AI said this:
Explain field types
You're right to ask for clarity! In Xano, the field type specifically designed for storing structured data like the
debt_details
you described (with fields likeloan_position
,interest_rate
, etc.) is calledjson
. While you might think of this structure conceptually as an "object" in programming terms, theobj
field type in Xano is reserved for system-level authentication features, like those you see in theusers
orusers_2fa
table (e.g., formagic_link
ortotp
). Using thejson
type is the correct way to store your custom structured data within theinvestments
table.
Is it true? should i just be adding json? Any advantage of one over the other? For me, the object seems better because I can then structure the data better when I am saving it. I have about 10 attributes I want to save in this object.
Is it better to add it as an object or another table for the details?
Thanks!