Fixed errors on json so that it now works properly.