preserve json order

This commit is contained in:
Felix Ableitner 2019-11-15 18:31:25 +01:00
parent 2666ba6adf
commit 20966e085a
3 changed files with 2 additions and 2 deletions

1
server/Cargo.lock generated vendored
View file

@ -1833,6 +1833,7 @@ name = "serde_json"
version = "1.0.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)",

2
server/Cargo.toml vendored
View file

@ -12,7 +12,7 @@ bcrypt = "0.5.0"
activitypub = "0.1.5"
chrono = { version = "0.4.7", features = ["serde"] }
failure = "0.1.5"
serde_json = "1.0.40"
serde_json = { version = "1.0.40", features = ["preserve_order"]}
serde = { version = "1.0.94", features = ["derive"] }
actix = "0.8.3"
actix-web = "1.0"

View file

@ -11,7 +11,6 @@ use lemmy_server::nodeinfo;
use lemmy_server::websocket::server::*;
use std::env;
use std::time::{Duration, Instant};
use actix_web::http::header::ContentType;
embed_migrations!();