Malformed JSON output format

When requesting the JSON output, returned data seems to be malformed:


{
     "url": "...",
     "messages": [

           {
               "lastLine": 24,
               "lastColumn": 185,
               "message": & did not start a character reference.  
(& probably should have been escaped as &.),
               "messageid": "html5",
               "explanation":     <p class="helpwanted">
       <a
         href="http://validator.w3.org/feedback.html?uri=http%3A%2F%2F...%2F;errmsg_id=html5#errormsg 
"
title="Suggest improvements on this error message through our feedback  
channels"
       >&#x2709;</a>
     </p>
,
               "type": "error"
           },
....

Note that "message" and "explanation" values aren't quoted.

Is it an expected behavior or am I doing something wrong? To get JSON  
output format, I append ";output=json" to the URL, as described at http://validator.w3.org/docs/users.html#Output

--
Best regards,
Yaroslav

Received on Wednesday, 27 January 2010 22:04:37 UTC