Flatten: Convert nested JSON objects into flat, dot-notation key–value pairs. Rebuild: Restore flat dot-notation JSON back to its original nested structure. node query.js sort age desc ...