Tout faire à la main est contre productif et source d'erreurs et/ou d'oublis.
Le plus simple est d'utiliser la sérialisation

https://www.newtonsoft.com/json/help/html/serializingjson.htm
...