make sure JSON is available