Error with using method getJSON in jQuery 1.5.1

Error with using method getJSON in jQuery 1.5.1

I've used in my project jQuery 1.4.4, decided to move to version 1.5.1 and I have a problem with method getJSON.


My JS code:

  1.         $.getJSON("<s:url action="checkRegistryErrorsNumber" includeParams="none" />",
  2.                          {"registry.id": <s:property value="registry.id" />},
  3.                         function(data) {
  4.                             $("#errorsNumber").text(data.errorsNumber);
  5.                             if (data.errorMessage != "") {
  6.                                 $("#messagesBlock").html(data.errorMessage);
  7.                             }
  8.         });

I'm using Struts 2.0.14 and you see some struts tags from jsp page. That is response:

  1. <%@page contentType="application/json;charset=UTF-8"%>
  2. <%@taglib prefix="s" uri="/struts-tags"%>
  3. {
  4.     "errorsNumber": "<s:property value="registry.errorsNumber" />",
  5.     "errorMessage": "<s:actionerror />"
  6. }
Using jQuery 1.4.4 - all OK
Using jQuery 1.5.1
- error in FF : "Invalid label"

What has changed in the new version? Why the request has not working? Bug in jQuery?