Make the dependency on multi_json more flexible