Fix config path for json encode options

I fixed another typo, and added tests.