Modify for compatability with aeson from github version
Revert "JSON config parser to consume till end of file"

This reverts commit 6cf0a0dcffb79825d8a4978f4117f747661565c5.