FormatJSON_String: Utility to return a formatted JSON string

Description Usage Arguments Value Examples

Description

Utility to return a formatted JSON string

Usage

1
FormatJSON_String(json.text, filename = NULL)

Arguments

json.text

- the JSON string

filename

= NULL, if you provide a string it will be written to that file in the current folder. Provide a full path if you want it to go somewhere else

Value

a formatted version of the json.text

Examples

1
2
3
4
5
6
## Not run: 
json.text<-SomeJSON_string_from_SomeWhere
FormatJSON_String(json.text)
FormatJSON_String(json.text,filename='MyJSON_File.json')

## End(Not run)

StatsResearch/RobsRUtils documentation built on May 9, 2019, 3:04 p.m.