functions to export json for Game and LineGame data