add native json support to scripts

discussion here: https://github.com/component/component/issues/421