Added JSON test handler