How to access env variable containing an object

I have the following in my .dev.vars file:
FOO = { bar = true, baz = 5}
and now I'm trying to access it from my Worker, with
env.FOO.bar
but that doesn't work (returns
undefined
).
Any ideas?
Was this page helpful?