{
  "cssvalidation" : {
     "uri"       : "$esc.java($file_title)",
     "checkedby" : "http://www.w3.org/2005/07/css-validator",
     "csslevel"  : "$cssversion",
     "date"      : "$currentdate",
     "timestamp" : "$currentdatelong",
     "validity"  : $is_valid,
     "result"    : {
		"errorcount"   : $errors_count,
		"warningcount" : $warnings_count
                   }
#if ($errors_count > 0)
  #set ($isfirst = true)       ,
     "errors"    : [
  #foreach ($error_content in $errors_content)
    #if ( $isfirst )
    #set ($isfirst = false)
    #else
     ,
    #end
#set ($err = $error_content.get("Error"))
#if ($error_content.get("link_value_parse_error"))
#set ($link_value = $error_content.get("link_value_parse_error"))
#else #set ($link_value = false ) #end
#if ($error_content.get("span_value_parse_error"))
#set ($span_value = $error_content.get("span_value_parse_error"))
#else #set ($span_value = false) #end

#set ( $errSource = $esc.java($err.SourceFile) )
      { 
	"source" : "$errSource",
#if ($err.Line && $err.line > 0)
	"line"  : $err.Line, 
#end
	"context" : "$esc.java($!error_content.get("CtxMsg"))",
        "type"    : "$esc.java($error_content.get("Type"))",
	"message" : "$esc.java($error_content.get("ErrorMsg"))"
      }
  #end
                   ]
#end
#if ($warnings_count > 0)
  #set ($isfirst = true)       ,
     "warnings"   : [
  #foreach ($warning in $warnings_list)
    #if ( $isfirst )
    #set ($isfirst = false)
    #else
     ,
    #end
    #if ( $warning.Level <= $warning_level )
      {
         "source"  : "$esc.java($warning.SourceFile)",
         "line"    : $warning.Line,
#if ( $warning.Context )       "context" :  "$esc.java($warning.Context)", 
#end
         "message" :  "$esc.java($!warning.WarningMessage)",
         "type"    :  "$esc.java($warning.Type)",
         "level"   : $warning.Level
      }
    #end
  #end
                     ]
#end
    }
}
