package pjson
import (
"encoding/json"
"log"
)
// ToBytes ...
func ToBytes(data interface{}) []byte {
b, err := json.Marshal(data)
if err != nil {
log.Printf("3pl/util/pjson.ToBytes.Marshal: %v\n", err)
}
return b