Add function json connect.