get_json_value: Extracts values from a json file

View source: R/get_json_value.R

get_json_valueR Documentation

Extracts values from a json file

Description

Extracts values from a json file by locating the label and key within the json file.

Usage

get_json_value(file, label, key)

Arguments

file

filepath; to json file

label

string; which corresponds to section where the key is located

key

string; name of key in which to extract the value

Author(s)

Tadhg Moore, Jorrit Mesman

Examples

## Not run: 
input_json(file = "samp.par", label = "ModelParameters", key = "f_wind", value = 1.2, out_file = NULL)

## End(Not run)

aemon-j/LakeEnsemblR documentation built on April 11, 2025, 10:09 p.m.