I have a 9GB JSON file, and importing all of it requires an obscene amount of memory. To circumvent that, I'm want to read in only the JSON attributes I'm interested in.
Right now, I'm running
json_file <- stream_in(file("D:/Shodan/data.json"))
Is there any way I can specify which JSON elements/resulting columns do I want to keep? For instance, the above operation will give me back about 30 columns, with over 700 nested/sub columns (col_a
, col_b
, col_c
, col_c$subcol1
, col_c$subcol2
, etc.) Is there any way I can specify the operation to only return specific columns/JSON elements like col_a
, col_c$subcol2
, and so on?