Switch to json require for classes