Correction of a bug with the json reading.
Add the possibility to open a file.