Slide 17
Slide 17 text
d3’s
JSON
hurdles
wriQng
JSON
summary
::
JSON
is
a
string
which
evaluates
to
an
object
you
write
it
like
a
string,
concatenate
it
like
a
string,
evaluate
it
like
a
piece
of
code
in
order
to
use
it!
(do
this
safely
with
an
in-‐browser
Parse
funcQon
to
keep
your
day
job)
(browser-‐naQve
Parse
funcQons
are
also
in
fact
faster
than
JavaScript’s
eval)
Wednesday, 24 July 13