We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad9bcf0 + e77c443 commit 839a91bCopy full SHA for 839a91b
src/parser.rs
@@ -175,7 +175,7 @@ impl<'input> JSONValue<'input> {
175
for _ in 0 .. ident {
176
style.current_indent.push(' ');
177
}
178
- ret = format!("{{\n{}", style.current_indent);
+ ret = format!("[\n{}", style.current_indent);
179
180
181
for (idx, value) in values.iter().enumerate() {
@@ -203,7 +203,7 @@ impl<'input> JSONValue<'input> {
203
204
Some(ident) => {
205
style.current_indent.truncate(style.current_indent.len() - ident);
206
- ret.push_str(format!("\n{}}}", style.current_indent).as_str());
+ ret.push_str(format!("\n{}]", style.current_indent).as_str());
207
208
209
ret
0 commit comments