Add support for dump to json via a JSON target