fixed problem with attribute value line not present in json when value is empty and not null

e.g. the line below was cut off from the JSON output:
"value":""