make definition public
generate json structure for definitions