middleware json djdt