custom json encoders for contraptions  and contraption pages.