have rm_na in to_json() so NAs in columns get ignored
df <- structure(list(c = c(123, NA), d = c(456, NA), f = c(NA, "cats"
+ )), class = "data.frame", row.names = c(NA, -2L))
df
# c d f
# 1 123 456 <NA>
# 2 NA NA cats
to_json( df )
[{"c":123.0,"d":456.0,"f":null},{"c":null,"d":null,"f":"cats"}]
would become
to_json( df, na_rm = TRUE )
[{"c":123.0,"d":456.0},{"f":"cats"}]
have
rm_nainto_json()soNAs in columns get ignoredwould become