Fixed #6: If the JSON is not valid the stored data will be ignored