encode attribute name in json