Fixed #17 - raise JSONError if all fields are invalid.