redesigned JSON, allowing to check wavelength, rotation etc and possiblely more.