Removed old code

Removed old JSON handling code and commented out a now unused function
that depended on it.