Hi virender
Do we have can compare the json which is coming into the string also with the same scenario
We have to compare 2 things the col_name and the data type of the json and fetch out the unmatched value
Let me give you one example:-
Original Json :- It contains the col_name and the data_type of the column name
[{"metadata":"{col_name=ID_CODE, data_type=varchar(32768)},{col_name=ABC_CODE, data_type=varchar(32768)},{col_name=PSD_CODE, data_type=varchar(32768)},{col_name=NUM_REGIST, data_type=varchar(32768)},{col_name=PROD_ORIG_NAME1, data_type=varchar(32768)}"}]
And the updated one is
[{"metadata":"{col_name=ID_CODE, data_type=varchar(32768)},{col_name=ABC_CODE, data_type=varchar(32768)},{col_name=PSD_CODE, data_type=varchar(32768)},{col_name=NUM_REGIST, data_type=varchar(32768)},{col_name=PROD_ORIG_NAME1, data_type=varchar(32768)},{col_name=PROD_ORIG_NAME2, data_type=varchar(32768)}"}]
Now here we are getting the {col_name=PROD_ORIG_NAME2, data_type=varchar(32768)} as the extra column and we have to fetch the out to unmacted value.
Can you please help me in this scenario also and please make this note we have to compaire both the col_name and data_type also.
Really thanks in advace.