i need to save and get a json string in the "JsonField" property. First i'm trying to get the json value in the field with xdata but i didn't have success.
Here's my table and the record:
Changing the character, i received a different response. This time instead of "JsonField@xdata.proxy"
i received a string that looks like a JWT or something like that, not the json stored on the database:
That is the text content encoded in Base64. You should get that value and pass it through a Base64 decoder to have your final text.
If you don't want or don't need to have your json_field to be lazy-loaded, you can simply map it as a string type. Just make the size 65536 and then it will still be a blob in your database (a text blob, actually) and in XData it will appear inline as raw text:
Thank's for the help, this worked fine for me.
Do you think this is the best way to use store and get JSON on PostgreSQL, or there is another way to make this?