decoupled json parser and file storage