Comment by ๐Ÿ™ norayr

Re: "Since we're talking Pascal today, does anyone know a goodโ€ฆ"

In: s/pascal

this was a function i wrote recently to help my friend to get the ip via tor network:

i was pleasantly surprised by how easy it was to work with json files.

json was a huge problem for me with oberon. and it was sort of solved when a member of #oberon chat on irc have been written a usable implementation. but that is much harder to use than this one.

i never worked with tdictionary, alas. i think freepascal forums are the best way to get help with what you want to do in this case.

๐Ÿ™ norayr [mod]

2024-05-17 ยท 2 years ago

Original Post

๐ŸŒ’ s/pascal

๐Ÿ€ gritty:

Since we're talking Pascal today, does anyone know a good way to persist objects to and from sqlite? Say, TDictionary? Also the documentation on JSON is not good. In Python, you just convert the dict to json and write to the db, then pull it out amd assign back to the dict. Easy. Delphi may have a solution but I'm using Free Pascal.

๐Ÿ’ฌ 1 comment ยท 2024-05-17 ยท 2 years ago