Data serialize/deserialize utility for JS/JSX/AMD/CommonJS