As a user, I would very much like to not have to parse raw JSON by hand when interacting with this library. We can use serde to solve this problem, but there is a hitch in this plan; XNAT provides data in 2 formats, and in some cases of the API it only supports one over the other:
XML
JSON
While there are impls of serde for both formats, we simply need to utilize them in our source.
As a user, I would very much like to not have to parse raw JSON by hand when interacting with this library. We can use
serde
to solve this problem, but there is a hitch in this plan; XNAT provides data in 2 formats, and in some cases of the API it only supports one over the other:While there are impls of
serde
for both formats, we simply need to utilize them in our source.