Moved getJson into it's own module

Still need to get it working with headers and footers.