View source: R/is_equal_json.R
is_equal_json | R Documentation |
Determine if two JSON objects are the same
is_equal_json(json_1, json_2)
json_1 |
a JSON object, as returned by read_json |
json_2 |
a JSON object, as returned by read_json |
TRUE if the objects are the same
Richèl J.C. Bilderbeek
# Using an example file
example_model <- read_model_file(get_gcaer_filename("M0.json"))
is_equal_json(example_model, example_model)
# Using GCAE files
if (is_gcae_repo_cloned()) {
m0 <- read_model_file(get_gcae_model_filename("M0"))
m1 <- read_model_file(get_gcae_model_filename("M1"))
is_equal_json(m0, m1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.