It looks like you're new here. If you want to get involved, click one of these buttons!
<<print JSON.stringify($var, null, 4)>>
doesn't seem to require any extra library imports (at least in 1.4.2 B3).
window.JSON
Comments
You can see all your variables at once with this:
<<print JSON.stringify(state.history[0].variables, null, 4)>>
Or for SugarCube:
<<print JSON.stringify(state.active.variables, null, 4)>>
It shouldn't. The JSON global object (specifically:
window.JSON
) has been a browser built-in for quite a while now.Still, thanks