use json5

This commit is contained in:
Simon Gardling
2022-06-02 00:20:17 -04:00
parent 0b3de98cff
commit 6f49185de4
4 changed files with 156 additions and 8 deletions

View File

@@ -163,8 +163,7 @@ fn main() {
]),
};
let text_json: serde_json::Value =
serde_json::from_str(include_str!("assets/text.json")).unwrap();
let text_json: serde_json::Value = json5::from_str(include_str!("assets/text.json5")).unwrap();
let mut json_file_array = text_json.as_object().unwrap().clone();
for value in json_file_array.iter_mut() {
if let serde_json::Value::Array(values) = value.1 {