Utilities API
Index
API
Mill.reflectinmodel
— Functionreflectinmodel(sch::Schema, ex::Extractor, args...; kwargs...)
Using schema sch
and extractor ex
, first create a representative sample and then call Mill.reflectinmodel
.
JsonGrinder.remove_nulls
— Functionremove_nulls(js)
Return a new document in which all null
values (represented as nothing
in julia) are removed.
Examples
julia> remove_nulls(Dict("a" => 1, "b" => nothing))
Dict{String, Union{Nothing, Int64}} with 1 entry:
"a" => 1
julia> [nothing, Dict("a" => 1), nothing, Dict("a" => nothing)] |> remove_nulls
2-element Vector{Dict{String}}:
Dict("a" => 1)
Dict{String, Nothing}()