Trim white spaces in both Object key and value recursively
问题 How do you trim white spaces in both the keys and values in a JavaScript Object recursively? I came across one issue in which I was trying to "clean" a user supplied JSON string and send it into my other code for further processing. Let's say we've got a user supplied JSON string whose property key and value are of type "string". However, what's problematic in this case is that the keys and values are not as clean as desired. Say a { " key_with_leading_n_trailing_spaces ": " my_value_with