some updates to xfJSON module