Why put this here? Should go in wh_json.erl I think. Also, did you look at wh_json:normalize_jobj ? clean_jobj isn't very descriptive of what's happening here. Also, missing spec :)