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