Fix broken json specs (make sure we require json when we use it)