diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-24 19:31:17 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-24 19:31:17 +0100 |
commit | 2c06cea2337627c08600e99fc0b1c69799526049 (patch) | |
tree | 5779ebb87a54fefa367ffac30e8ad251cb4b8ef3 /src/bin | |
parent | 46a49718b09fa5a517d2aa8dceadcc1713ffc51a (diff) | |
download | unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar.bz2 unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar.zst |
json conversion
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/parse.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/parse.rs b/src/bin/parse.rs index 496f4d3..c0cb0e5 100644 --- a/src/bin/parse.rs +++ b/src/bin/parse.rs @@ -1,3 +1,4 @@ +use log::debug; use std::{ env::args, fs::File, @@ -39,7 +40,10 @@ fn main() -> anyhow::Result<()> { let value = read_value(typetree.type_tree.as_ref().unwrap(), e, &mut cab)?; - // eprintln!("{value:#?}") + debug!( + "{}", + serde_json::to_string_pretty(&value.to_json()).unwrap() + ) } // eprintln!("{:#?}", file.types); } |