fix bug - can't write Hibernate Object to Json