json-based struct transfering to webkit