[fix bug 1001379] Add JSONSnippet.weight.