# Path: wwb_scanner/utils/numpyjson.py
# PY3 = sys.version_info.major >= 3
# class NumpyEncoder(object):
#     def encode(self, obj):
#     def decode(self, d):
# def dumps(obj, **kwargs):
# def loads(s, **kwargs):
# def dump(*args, **kwargs):
# def load(*args, **kwargs):


import datetime
import jsonfactory
from wwb_scanner.utils import numpyjson as json



try:
    basestring = basestring
except NameError:
    basestring = str

class JSONMixin(object):
    @classmethod
    def from_json(cls, data, **kwargs):
        if isinstance(data, basestring):
            data = json.loads(data)
        kwargs.update(data)
        kwargs['__from_json__'] = True
        obj = cls(**kwargs)
        obj._deserialize(**kwargs)
        return obj
    def instance_from_json(self, data, **kwargs):
        if isinstance(data, basestring):
            data = json.loads(data)
        kwargs.update(data)
        self._deserialize(**kwargs)
    def to_json(self, **kwargs):
        d = self._serialize()

# Path: wwb_scanner/utils/numpyjson.py
# PY3 = sys.version_info.major >= 3
# class NumpyEncoder(object):
#     def encode(self, obj):
#     def decode(self, d):
# def dumps(obj, **kwargs):
# def loads(s, **kwargs):
# def dump(*args, **kwargs):
# def load(*args, **kwargs):


# Path: wwb_scanner/core.py
import datetime
import jsonfactory
from wwb_scanner.utils import numpyjson as json




try:
    basestring = basestring
except NameError:
    basestring = str

class JSONMixin(object):
    @classmethod
    def from_json(cls, data, **kwargs):
        if isinstance(data, basestring):
            data = json.loads(data)
        kwargs.update(data)
        kwargs['__from_json__'] = True
        obj = cls(**kwargs)
        obj._deserialize(**kwargs)
        return obj
    def instance_from_json(self, data, **kwargs):
        if isinstance(data, basestring):
            data = json.loads(data)
        kwargs.update(data)
        self._deserialize(**kwargs)
    def to_json(self, **kwargs):
        d = self._serialize()

        return json.dumps(d, **kwargs)