make a type for json marshalling