Fix error if options.json is boolean.