From ff06b6667860baa783a09e9c53b24c77fc85d297 Mon Sep 17 00:00:00 2001
From: DeathwingTheBoss <ozcanbarisucar@gmail.com>
Date: Fri, 24 Mar 2023 18:57:18 +0300
Subject: [PATCH] Preserve JSON order

---
 Cargo.lock | 1 +
 Cargo.toml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Cargo.lock b/Cargo.lock
index 3c0799d..c18d8ae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1558,6 +1558,7 @@ version = "1.0.94"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "1c533a59c9d8a93a09c6ab31f0fd5e5f4dd1b8fc9434804029839884765d04ea"
 dependencies = [
+ "indexmap",
  "itoa",
  "ryu",
  "serde",
diff --git a/Cargo.toml b/Cargo.toml
index 5b4a754..4e1193c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@ description = "A caching reverse-proxy application for the Hive blockchain."
 actix-web = "4.3.1"
 reqwest = { version = "0.11.14", features = ["blocking", "json"] }
 serde = { version = "1.0", features = ["derive"] }
-serde_json = "1.0.94"
+serde_json = { version = "1.0.94", features = ["preserve_order"] }
 lru_time_cache = "0.11.11"
 humantime = "2.1.0"
 config = "0.13.3"
-- 
GitLab