add JSON expressing classes and tests