I'm trying to take a json file (particularly a vscode
snippets.json file) file and create a set of structs. The snippet syntax I'm trying to support is a superset of the syntax laid out in the Language Server Protocol, meaning that I some struct attributes have to be instantiated if they aren't present.
The reason being I'm trying to create a drop in replacement for most editor snippet managers, with the capability of having extra features not supported by the current editor, allowing users to easily migrate to using the plugin.
From what I've read,
serde is the library I likely need to use, but I can't figure out how to do so. most of the examples I see are directly going from json to struct. this may not actually be what
serde is designed for but I wanted to check before attempting to parse manually.