Data storage and retrieval from/to json