# JsonLinesJournalFormat Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.json.jsonlinesjournalformat/)

## CreateWriter {#createwriter-809f0755}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.json.jsonlinesjournalformat/methods/createwriter-809f0755/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/Orleans.Journaling/Formats/Json/JsonLinesJournalFormat.cs#L29)

```csharp
public JournalBufferWriter CreateWriter()
```

Creates a writer for a new mutable journal batch.

### Returns

A new journal buffer writer.

## Replay(JournalBufferReader, JournalReplayContext) {#replay-orleans-journaling-journalbufferreader-orleans-journaling-journalreplayco-2dbf45bb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.json.jsonlinesjournalformat/methods/replay-orleans-journaling-journalbufferreader-orleans-journaling-journalreplayco-2dbf45bb/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/Orleans.Journaling/Formats/Json/JsonLinesJournalFormat.cs#L34-L38)

```csharp
public void Replay(JournalBufferReader input, JournalReplayContext context)
```

Reads as many complete journal entries as possible from `input` and applies them to resolved states.

### Parameters

- `input` (`JournalBufferReader`): The buffered persisted journal data, including its completion state.
- `context` (`JournalReplayContext`): The replay context used to resolve states and journal services.
