You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a good question. It might be possible to use a normal JSON serializer on the object directly as it theoretically implements everything needed to traverse the object with some template madness, but the easiest route is most likely to just manually recurse into it like the example but store the values in a JSON object from the library of your choice. The example was really just a quick example.
The reason I went with such a weird data structure is that it's effectively a pointer to the right offset in the database file itself so it only ever reads what you use from the database on the fly (athough to be honest I have no idea whether the vtable pointer + slice + type enum ends up taking less space than just being dumb and loading everything in). It's also my first time parsing an unknown format like this on my own so I had a bit of fun making sure it would behave correctly even with broken databases.
I also only really needed the country code for the project I was working on at that time.
printNode
return text. Is the any easy way to make makeJSON
data-type?The text was updated successfully, but these errors were encountered: