better json syntax and included debug data