first draft. Opens file, loads data to json object