Add class method for importing JSON