added hex type with json and xml stubs