Big refactoring of the Json handling, I followed what I did from OPDS. It doesn't still feel right but I think it's better.