fix wrong call for json prettify code

Oops i've switched functions ... :S

refs #2049
add syntax verification when updating from json debug