Fixed formatting of label for transforming json input into graph format