update goaltype.to_json so that exported json can be drew by scala front-end