toJSON-sites-method: toJSON

toJSON,sites-methodR Documentation

toJSON

Description

Convert a Neotoma2 sites object into a standardized JSON file for API management.

Usage

## S4 method for signature 'sites'
toJSON(x = NA)

Arguments

x

sites R object to be converted

Value

The function returns a character string in JSON format

Author(s)

Socorro Dominguez s.dominguez@ht-data.com

Examples

## Not run: 
# To find all sites that contain the string "Alexander%"
alex.sites <- get_sites(sitename="Alexander%")
# Convert the object to json
toJSON(alex.sites)

## End(Not run)

neotoma2 documentation built on June 25, 2025, 5:10 p.m.