Move all libpod/ JSON references over to jsoniter

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2019-01-08 14:05:56 -05:00
parent 1b761dbb02
commit 167d50a9fa
7 changed files with 3 additions and 7 deletions

View File

@ -2,15 +2,17 @@ package libpod
import (
"bytes"
"encoding/json"
"strings"
"sync"
"github.com/boltdb/bolt"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
var json = jsoniter.ConfigCompatibleWithStandardLibrary
// BoltState is a state implementation backed by a Bolt DB
type BoltState struct {
valid bool

View File

@ -2,7 +2,6 @@ package libpod
import (
"bytes"
"encoding/json"
"runtime"
"strings"

View File

@ -1,7 +1,6 @@
package libpod
import (
"encoding/json"
"fmt"
"io/ioutil"
"net"

View File

@ -3,7 +3,6 @@ package libpod
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"

View File

@ -4,7 +4,6 @@ package libpod
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net"

View File

@ -3,7 +3,6 @@ package libpod
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net"

View File

@ -2,7 +2,6 @@ package libpod
import (
"context"
"encoding/json"
"time"
istorage "github.com/containers/image/storage"