Add a comment for the use of the reject method in JSON.pretty_generate.