Skip to content

Commit 46654b7

Browse files
committed
chore: Migrate jsonx.RawJSON to json.RawMessage
1 parent 371dc58 commit 46654b7

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

common/jsonx/raw_json.go

Lines changed: 0 additions & 22 deletions
This file was deleted.

config/router.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package config
22

3-
import "github.com/layou233/zbproxy/v3/common/jsonx"
3+
import (
4+
"encoding/json"
5+
6+
"github.com/layou233/zbproxy/v3/common/jsonx"
7+
)
48

59
type Router struct {
610
DefaultOutbound string `json:",omitempty"`
@@ -9,7 +13,7 @@ type Router struct {
913

1014
type Rule struct {
1115
Type string
12-
Parameter jsonx.RawJSON `json:",omitempty"`
16+
Parameter json.RawMessage `json:",omitempty"`
1317
//SubRules []Rule `json:",omitempty"`
1418
Rewrite RuleRewrite `json:",omitempty"`
1519
Sniff jsonx.Listable[string] `json:",omitempty"`

0 commit comments

Comments
 (0)