fix #29

creation of 2 json objects for the structure and the constraints