Skip to content

fromJSON does not error on multiple json objects #8

@alexcb

Description

@alexcb

fromJSON('{"a":5} {"b": 1}')
$a
[1] 5

This should return an error, as the input is more than a single json object.

see http://stackoverflow.com/questions/37128363/only-one-json-line-was-read-in-rjson

At the same time, we should support streams of json with the jsonparser: https://github.com/alexcb/rjson/blob/master/rjson/inst/rpc_server/server.r#L61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions