add the option to pass config JSON objects to drivers

Signed-off-by: Tomas Neme <lacrymology@gmail.com>