allow passing json options passing