swiched from JSONDecodeError to its parent, ValueError because of incompatibilities with django 1.4