Remove API dependency on jansson for constraints.