preview uses correct json data