(source, property, callback)
| 1809 | |
| 1810 | // Internal: Updates a traversed object member. |
| 1811 | var update = function (source, property, callback) { |
| 1812 | var element = walk(source, property, callback); |
| 1813 | if (element === undef) { |
| 1814 | delete source[property]; |
| 1815 | } else { |
| 1816 | source[property] = element; |
| 1817 | } |
| 1818 | }; |
| 1819 | |
| 1820 | // Internal: Recursively traverses a parsed JSON object, invoking the |
| 1821 | // `callback` function for each value. This is an implementation of the |