finilizing json control