use with for json modules instead of assert
#4092
Merged
with for json modules instead of assert
#4092