Create 'JSON' that 'd3.js' Expects

d3_json(x = NULL, strip = TRUE)

Arguments

x

data, usually in the form of data.frame or list

strip

logical to remove outer array. Use strip=TRUE for hierarchies from d3_nest

Value

string of 'JSON' data