I\'m trying to use fromJSON()
to read in a .json file with multiple objects structured as follows:
{ \"key11\": value11, \"key12\": value12 }
{ \"ke
if you read references: the option unexpected.escape
is available.
unexpected.escape changed handling of unexpected escaped characters. Handling value should be one of "error", "skip", or "keep"; on unexpected characters issue an error, skip the character, or keep the character
Assuming you know it's one per line, and no weird line breaks,
lapply(readLines(filename), fromJSON, flatten = TRUE)