By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
dbms_output:
function mask_keys - start
Key: success, Value: true
Key: payload, Value: {"authSumCnt":"1","CardNum":"7712343649057813","authSum":[{"CardNumber":"9512343649057813","otherKey":"otherValue"},{"acctNum":"1234567890123456","anotherKey":"anotherValue","nestedArray":[{"nestedKey":"nestedValue","acctNumber":"1234567890123456"}]}]}
Value is an object
{"authSumCnt":"1","CardNum":"7712343649057813","authSum":[{"CardNumber":"9512343649057813","otherKey":"otherValue"},{"acctNum":"1234567890123456","anotherKey":"anotherValue","nestedArray":[{"nestedKey":"nestedValue","acctNumber":"1234567890123456"}]}]}
function mask_keys - start
Key: authSumCnt, Value: "1"
Key: CardNum, Value: "7712343649057813"
Found
Masking
function mask_numeric_value - start
New value: "771234******7813"
Key: authSum, Value: [{"CardNumber":"9512343649057813","otherKey":"otherValue"},{"acctNum":"1234567890123456","anotherKey":"anotherValue","nestedArray":[{"nestedKey":"nestedValue","acctNumber":"1234567890123456"}]}]
Value is an array
Element is an object
function mask_keys - start
Key: CardNumber, Value: "9512343649057813"
Found
Masking
function mask_numeric_value - start
New value: "951234******7813"
Key: otherKey, Value: "otherValue"
Element is an object
function mask_keys - start
Key: acctNum, Value: "1234567890123456"
Found
Masking
function mask_numeric_value - start
New value: "123456******3456"
Key: anotherKey, Value: "anotherValue"
Key: nestedArray, Value: [{"nestedKey":"nestedValue","acctNumber":"1234567890123456"}]
Value is an array
Element is an object
function mask_keys - start
Key: nestedKey, Value: "nestedValue"
Key: acctNumber, Value: "1234567890123456"
Found
Masking
function mask_numeric_value - start
New value: "123456******3456"
{"success":true,"payload":{"authSumCnt":"1","authSum":[{"otherKey":"otherValue","CardNumber":"951234******7813"},{"anotherKey":"anotherValue","nestedArray":[{"nestedKey":"nestedValue","acctNumber":"123456******3456"}],"acctNum":"123456******3456"}],"CardNum":"771234******7813"}}