This is a thin wrapper for jsonlite::unbox. It stops jsonlite from
representing single character, numeric, logical, etc. items as arrays.
Arguments
- x
vector or single row data frame
- unbox
Logical. Should the value be unboxed? See
jsonlite::unbox
Details
This is useful when a property or definition is of type string, number, logical and of length 1.
See also
Other JSON Prep:
clean_field_names(),
get_entity(),
prep_affiliation(),
prep_array(),
prep_array_objects(),
prep_creators(),
prep_data(),
prep_descriptions(),
prep_for_json(),
prep_from_metadata_template(),
prep_fundingReferences(),
prep_identifier(),
prep_language(),
prep_methodology(),
prep_methods(),
prep_nameIdentifiers(),
prep_object(),
prep_publicationYear(),
prep_relatedIdentifiers(),
prep_rights(),
prep_subjects(),
prep_titles()