Setup connection entity with json