working on a json document storage