Transform a JSON object into another JSON object using a JSON declaration