fromJSON() can read from files and R connections.
readJSONStream() provides a lower-level connection-oriented
parser interface.
Callbacks can be used to observe parser events without building the default R object.
readJSONStream() accepts a connection and reads JSON
content from it.
For ordinary package code, start with fromJSON() on a
string, file path, or connection. Use parser callbacks or
readJSONStream() when the application needs lower-level
control over parsing.