network: refactor code and update value checker for field ipv4
network: update setConnectionDataKeyJSON(), add isJSONKeyValueMeansToDeleteKey(), and update test code