RJSONIO
RJSONIO copied to clipboard
Serialize to and from R and JSON, JavaScript Object Notation
the compiler for the json library is hardcoded to gcc for linux IIUC It should the compiler defined by R ... as new versions of gcc have a version number...
@yihui and I are seeing the following behavior: ``` > cat( toJSON( list(x=1, y=character(0)) ) ) { "x": 1, "y": 1 } ``` This is because [`unlist`](https://github.com/duncantl/RJSONIO/blob/master/R/json.R#L281) is used to...
Here's a testcase that shows string escapes working for dictionary values, but not for the keys: ``` cat(RJSONIO::toJSON(list("test\"escape" = "another\"escape"))) { "test"escape": "another\"escape" } ```
I have properly formatted JSON fetched through a standard API. API Basically returns an array of JSON objects each time I fetch data. LIke this: [ {}, {}, {} ]...
Problem installing local libjson using `gcc-5.4.0.3` with Docker. The library source file `JSONWorker.cpp` is using `intptr_t` without `#include`ing its typedef first; I applied the patch below which allows it to...
Hi, I noticed the following behaviour with `toJSON`: ``` cat(toJSON(data.frame(logical(0)), byrow=TRUE), '\n') [ [ null ], [] ] ``` When I would instead expect `[]` (?) I believe the problem...
hi Duncan, this clause in the license is blocking our use of this library: https://github.com/duncantl/RJSONIO/blob/master/src/JSON_parser.c#L18 is this code even used? it seems to have been replaced by the libjson subdirectory...
When I give toJSON a list of lists and an empty collapse string, the function seems to fail to collapse the JSON string properly. Below is a minimal example. ```...
Without this change, this is the behavior you get: ``` > RJSONIO::toJSON(head(cars, 3), digits = 12) [1] "{\n \"speed\": [ 4, 4, 7 ],\n\"dist\": [ 2, 10, 4 ] \n}"...
The JSON specification does not allow control characters in strings. `toJSON` is not escaping these characters: ``` $ R --vanilla R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014...