validateFromString function

Syntactically validates an mzQC document which is already in memory as JSON string. e.g. the string "{ mzQC : {}}"

Syntactically validates an mzQC document which is already in memory as JSON string. e.g. the string "{ mzQC : {}}"

If the string object passed into this function contains multiple elements (length > 1). then they will be concatenated using '\n' before validation.

validateFromString(JSON_string, verbose = TRUE)

Arguments

  • JSON_string: A string which contains JSON (multiple lines allowed)
  • verbose: Show extra information if validation fails

Returns

TRUE/FALSE if validation was successful/failed

Details

The returned TRUE/FALSE has additional attributes in case of errors. Use attributes(result) to access them.

  • Maintainer: Chris Bielow
  • License: MIT + file LICENSE
  • Last published: 2025-03-23