Fixed error with JSON formatting.
Fixed error with JSON formatting.

Also moved the format selection to this module, as it makes
more sense here.

bgruening/gemini,brentp/gemini,bpow/gemini,arq5x/gemini,bgruening/gemini,heuermh/gemini,udp3f/gemini,bw2/gemini,bgruening/gemini,arq5x/gemini,xuzetan/gemini,heuermh/gemini,udp3f/gemini,heuermh/gemini,xuzetan/gemini,xuzetan/gemini,brentp/gemini,udp3f/gemini,bw2/gemini,udp3f/gemini,brentp/gemini,bw2/gemini,xuzetan/gemini,bpow/gemini,bpow/gemini,brentp/gemini,arq5x/gemini,bw2/gemini,bgruening/gemini,arq5x/gemini,bpow/gemini,heuermh/gemini