plac

Unofficial Roon clients

Create helper class for body extracting This does not have actual JSON parsing, as parsing JSON in Vala is totally mess, nightmare. The only (?) seemingly-reliable library is json-glib. Documentation is unorganized mess as usual in GTK-related project, so it does not dismiss the value. Extremely imperative and quite verbose API is tolerable if it's used for rare case such as string-to-enum conversion. The problem is the library is not well integrated GLib ecosystem, despite it being under GLib project. It has GObject serialization and deserialization functionality, and they are bare minimum. No array support, top-level MUST be an object... Imperative API also is full of footgun, such as getting a data from node in mismatching type returns "NULL" or "0"... In addition to that, I see no mention of "null or field omit" in methods I checked. That may okay as a C library, but definetely does not meet a quality required to be used in high-level languages, Vala. Little bit cumbersome, but seriealize and deserialize in Zig via FFI is much much much cleaner and better. Considering how widespread JSON is, I can't recommend Vala as a sole application development language to anyone, especially the application involves networking. For GTK application development, Rust would be the best choice nowadays?

Changes

3 changed files (+90/-0)