diff options
Diffstat (limited to 'crates/shirabe/src/json')
| -rw-r--r-- | crates/shirabe/src/json/json_file.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/shirabe/src/json/json_file.rs b/crates/shirabe/src/json/json_file.rs index 0ce55e55..91e0d380 100644 --- a/crates/shirabe/src/json/json_file.rs +++ b/crates/shirabe/src/json/json_file.rs @@ -220,6 +220,11 @@ impl JsonFile { hash: PhpMixed, options: JsonEncodeOptions, ) -> anyhow::Result<()> { + let options = JsonEncodeOptions { + indent: self.indent.clone(), + ..options + }; + if self.path == "php://memory" { file_put_contents( &self.path, |
