Ba(1-x)K(x)Fe(2)As(2) superconducting samples (x = 0, 0.2, 0.4, 0.5) were synthesized by the solid-state reaction method. In this contribution the doping effect of potassium on the lattice dynamics in this newly discovered Ba(1-x)K(x)Fe(2)As(2) superconductor has been investigated by extended X-ray absorption fine-structure spectroscopy. The analysis shows that with potassium doping an increased disorder in the iron layers is mainly related to the softening of the Fe-Fe bond. Information about the electronic structure of these materials has also been obtained by looking at the X-ray absorption near-edge structure spectra that point out the presence of holes in the Fe-3d/As-4p hybridized orbital of the BaFe(2)As(2)-based system.