mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-27 16:29:26 +01:00
14 lines
247 B
Go
14 lines
247 B
Go
|
package idp
|
||
|
|
||
|
import "encoding/json"
|
||
|
|
||
|
type JsonParser struct{}
|
||
|
|
||
|
func (JsonParser) Marshal(v interface{}) ([]byte, error) {
|
||
|
return json.Marshal(v)
|
||
|
}
|
||
|
|
||
|
func (JsonParser) Unmarshal(data []byte, v interface{}) error {
|
||
|
return json.Unmarshal(data, v)
|
||
|
}
|