make DocumentBuilder consume json docs
change json structure for schema definitions