Ensuring target connection is JSON