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