<filename>write.py<gh_stars>1-10
import json

def write_json(matrix):
  with open("result.json", "w") as f:
    json.dump(matrix, f)
<filename>write.py<gh_stars>1-10
import json

def write_json(matrix):
  with open("result.json", "w") as f:
    json.dump(matrix, f)