Add residue json parsing and a sample residue
Residue JSON parsing