removing duff json layers