class to json test