Skip to content
Back to formatted view

Raw Message

Message-ID: <1294376886645-3178646.post@n4.nabble.com>
Date: 2011-01-07T05:08:06Z
From: Jeroen Ooms
Subject: Parsing JSON records to a dataframe

What is the most efficient method of parsing a dataframe-like structure that
has been json encoded in record-based format rather than vector based. For
example a structure like this:

[ {"name":"joe", "gender":"male", "age":41}, {"name":"anna",
"gender":"female", "age":23} ]

RJSONIO parses this as a list of lists, which I would then have to apply
as.data.frame to and append them to an existing dataframe, which is terribly
slow. 


-- 
View this message in context: http://r.789695.n4.nabble.com/Parsing-JSON-records-to-a-dataframe-tp3178646p3178646.html
Sent from the R help mailing list archive at Nabble.com.