Skip to content

Commit

Permalink
preserve order
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Feb 20, 2024
1 parent 4783a44 commit 7806735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vegafusion-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "BSD-3-Clause"

[features]
pyarrow = [ "pyo3", "arrow/pyarrow",]
json = [ "serde_json", "arrow/json", "chrono",]
json = [ "serde_json/preserve_order", "arrow/json", "chrono",]
prettyprint = [ "arrow/prettyprint",]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion vegafusion-common/src/data/json_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ mod tests {

assert_eq!(
String::from_utf8(buf).unwrap(),
r#"{"duration_sec":"PT120S","duration_msec":"PT0.120S","duration_usec":"PT0.000120S","duration_nsec":"PT0.000000120S","name":"a"}
r#"{"duration_sec":"PT120S","duration_msec":"PT0.12S","duration_usec":"PT0.00012S","duration_nsec":"PT0.00000012S","name":"a"}
{"duration_sec":null,"duration_msec":null,"duration_usec":null,"duration_nsec":null,"name":"b"}
"#
);
Expand Down

0 comments on commit 7806735

Please sign in to comment.