[minor] Pass in the full object to the parser, and accept weight to be specified as an object