Moved get json function to index.php

This function is not necessary for BG, a json, csv, external js, or
another form of arrays should be accessible and not limited.