Fix JSON builder expecting String where it now receives StringIO
Merge pull request #180 from tim-george/master

Fix JSON builder expecting String where it now receives StringIO