adding constants, types, weights, etc to json stream too