moveValueRecursive

public static void moveValueRecursive(JsonNode data, Array<String> sourceKeys, Array<String> destKeys, int keyIdx, Set<String> excludeKeys)

Recursively moves values from source path to destination path.

Parameters

data

The current node being processed

sourceKeys

The source path keys

destKeys

The destination path keys

keyIdx

The current index in the key arrays

excludeKeys

Keys to exclude when processing wildcards