RcppSimdJson (version 0.1.11)

validateJSON: Validate a JSON file, fast

Description

By relying on simd-parallel 'simdjson' header-only library JSON files can be parsed very quickly.

Usage

validateJSON(jsonfile)

Value

A boolean value indicating whether the JSON content was parsed successfully

Arguments

jsonfile

A character variable with a path and filename

Examples

Run this code
if (!RcppSimdJson:::.unsupportedArchitecture()) {
    jsonfile <- system.file("jsonexamples", "twitter.json", package="RcppSimdJson")
    validateJSON(jsonfile)
}

Run the code above in your browser using DataLab