junit: use write_jny instead of write_json