Writes the sbml_model object as JSON with the zujson package, for use
without XML: one array of records per element kind, math as R code (as
sbml_math() shows it), notes and annotation as XML text.
Examples
m <- sbml_read(system.file("extdata", "decay.xml", package = "zusbml"))
cat(substr(sbml_write_json(m), 1, 200))
#> {
#> "level": 3,
#> "version": 2,
#> "id": "decay",
#> "name": "decay",
#> "substance_units": null,
#> "time_units": null,
#> "volume_units": null,
#> "area_units": null,
#> "length_units": null,
#> "extent_uni