make classed to represent json