mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Pretty print options for Config JSON
This commit is contained in:
parent
a964c0e3ec
commit
76fcad92b3
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Config{
|
||||||
$content = $this->writeProperties();
|
$content = $this->writeProperties();
|
||||||
break;
|
break;
|
||||||
case CONFIG_JSON:
|
case CONFIG_JSON:
|
||||||
$content = json_encode($this->config);
|
$content = json_encode($this->config, JSON_PRETTY_PRINT | JSON_BIGINT_AS_STRING);
|
||||||
break;
|
break;
|
||||||
case CONFIG_YAML:
|
case CONFIG_YAML:
|
||||||
$content = Spyc::YAMLDump($this->config);
|
$content = Spyc::YAMLDump($this->config);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue