How to write a java function to compare a json and a string in pega.
"{\"deriv_bank_incom_null_in\":\"0\",\"deriv_bank_nm_mtch_in\":\"FAIL\",\"deriv_bank_final_pre_tax_in\":1.029800035787E7,\"deriv_bank_mult_users_in\":\"-1\",\"deriv_bank_frgn_curr_in\":\"-1\",\"deriv_bank_mult_acct_in\":\"-1\",\"deriv_bank_jnt_acct_in\":\"-1\",\"deriv_bank_excpt_in\":\"NAME_MATCH_FAIL\"}"---this is string 1
this is the JSON--{"deriv_bank_incom_null_in":"0","deriv_bank_nm_mtch_in":"FAIL","deriv_bank_final_pre_tax_in":1.029800035787E7,"deriv_bank_mult_users_in":"-1","deriv_bank_frgn_curr_in":"-1","deriv_bank_mult_acct_in":"-1","deriv_bank_jnt_acct_in":"-1","deriv_bank_excpt_in":"NAME_MATCH_FAIL"} Basically i want to see what is the difference between these 2 as if i compare it via online json comparor it says both are same but still this function ObtainJSON/pxConvertJsonToString throws error while parsing the json.