density and positions to json