From 0bd0c361297903888c1f53af67d547ef2858882f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 5 Jun 2026 05:10:50 +0900 Subject: refactor(json): make json encode helpers accept serde::Serialize Change json_encode/json_encode_ex and JsonFile::encode/encode_with_options to take a generic serde::Serialize value instead of &PhpMixed, implement Serialize for PhpMixed/ArrayObject, and drop the PhpMixed::String wrapping at JsonManipulator call sites in favor of passing raw values. Co-Authored-By: Claude Opus 4.8 (1M context) --- Cargo.lock | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 55fac3c..92e8cf8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1012,6 +1012,7 @@ version = "0.0.1" dependencies = [ "anyhow", "indexmap", + "serde", "zip", ] -- cgit v1.3.1