adding json file support
json builder for mbsem, mongo optional, libtiff optional