Fixed bugs with no errors.
Fixed a mistake in the JSON view, which always displayed an error.