add json decoding to file open