When Array#as_json and Hash#as_json are called without options, they
should also call #as_json on the children without options (instead of
nil)
Merge pull request #13007 from chancancode/dont_call_as_json_with_nil

Don't call #as_json on children of Array and Hash with nil when no arguments are passed