Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 15, 2024
1 parent 704e79d commit 09fce5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snc/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func Unmarshal(data []byte, v any) error {

// 将对象转换成json(序列化)
func Marshal(val any) ([]byte, error) {
return snc.Marshal(val)
return json.Marshal(val)
//return snc.Marshal(val)
}

func MarshalIndent(v any, prefix, indent string) ([]byte, error) {
Expand Down

0 comments on commit 09fce5e

Please sign in to comment.