summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocol.go b/protocol.go
index 42649264..b2836289 100644
--- a/protocol.go
+++ b/protocol.go
@@ -1,8 +1,8 @@
package roadrunner
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/spiral/goridge"
"os"
)
@@ -20,7 +20,8 @@ func sendControl(rl goridge.Relay, v interface{}) error {
return rl.Send(data, goridge.PayloadControl|goridge.PayloadRaw)
}
- data, err := json.Marshal(v)
+ j := json.ConfigCompatibleWithStandardLibrary
+ data, err := j.Marshal(v)
if err != nil {
return fmt.Errorf("invalid payload: %s", err)
}