Repository navigation
Storing JSON (Map<String,dynamic>) #2600
|
With regards to database models, the documentation states that:
However, the following If Thank you and regards, |
Replies: 2 comments
|
Hey @seanradford 👋 When JSON data is stored in the database, the Postgres json type is used: https://www.postgresql.org/docs/current/datatype-json.html The limitation on |
|
Yes, the issue of deserialisation... I suppose I was working under the assumption that I think I have a work-around for my use-case, so think all is okay. If it works out, I'll update this thread. (This is my first time assessing / investigating Serverpod.) Thank you. |
Hey @seanradford 👋
When JSON data is stored in the database, the Postgres json type is used: https://www.postgresql.org/docs/current/datatype-json.html
The limitation on
dynamiccomes from the reason that when we pass any value through our serialization we need to know what type it is when deserializing the value again. Without that information, the type will not be preserved when transmitted.