Skip to content

Commit

Permalink
fix object of type 'bytes' is not JSON serializable issue (#109)
Browse files Browse the repository at this point in the history
* add lib simplejson

* fix object of type 'bytes' is not JSON serializable issue
  • Loading branch information
shinn1982 authored and meidli committed Jan 8, 2020
1 parent 3c77036 commit 203e7f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Flask==1.0
Flask-HTTPAuth==2.5.0
netaddr>=0.7.12
future>=0.16.0
pysubnettree==0.26
pysubnettree==0.26
simplejson==3.17.0
6 changes: 5 additions & 1 deletion yabgp/handler/default_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import json

# import json
# replace with simplejson
import simplejson as json

import os
import time
import logging
Expand Down

0 comments on commit 203e7f0

Please sign in to comment.