feat: pretty-print recipe data payload

This commit is contained in:
Benjamin Nussbaum 2025-06-16 14:47:03 +02:00
parent ea6eef0db3
commit 56c00c2489

View file

@ -61,7 +61,7 @@ new class extends Component {
$this->polling_url = $this->plugin->polling_url;
$this->polling_verb = $this->plugin->polling_verb;
$this->polling_header = $this->plugin->polling_header;
$this->data_payload = json_encode($this->plugin->data_payload);
$this->data_payload = json_encode($this->plugin->data_payload, JSON_PRETTY_PRINT);
}
public function saveMarkup(): void
@ -115,7 +115,7 @@ new class extends Component {
->json();
$this->plugin->update(['data_payload' => $response]);
$this->data_payload = json_encode($response);
$this->data_payload = json_encode($response, JSON_PRETTY_PRINT);
}
}