Set the parser when the format is changed

Additionally give a warning for json format because it could change

Signed-off-by: Alastair Porter <alastair@porter.net.nz>