wrote a JSON ORMish class