Adding methods for reading and writing JSON model