// ValuesJSON returns the json values in the current step as a StepValue.
ValuesJSON returns the json values in the current step as a StepValue.
// ValuesJSON returns the json values in the current step as a StepValue .
func (s *stepIterator) ValuesJSON() (*StepValue, error) {
	if s.stepValue.ValuesJSON != nil {
		return s.stepValue, nil
	}
	var err error
	s.stepValue.ValuesJSON = make([]interface{}, len(s.iterators))
	for i, iterator := range s.iterators {
		if s.stepValue.Exists[i] {
			s.stepValue.ValuesJSON[i], err = iterator.ValueAsJSON()
			if err != nil {
				return nil, err
			}
		} else {
			s.stepValue.ValuesJSON[i] = nil
		}
	}
	return s.stepValue, nil
}
func ( s * stepIterator ) ValuesJSON ( ) ( * StepValue , error ) { if s . stepValue . ValuesJSON != nil { return s . stepValue , nil } var err error s . stepValue . ValuesJSON = make ( [ ] interface { } , len ( s . iterators ) ) for i , iterator := range s . iterators { if s . stepValue . Exists [ i ] { s . stepValue . ValuesJSON [ i ] , err = iterator . ValueAsJSON ( ) if err != nil { return nil , err } } else { s . stepValue . ValuesJSON [ i ] = nil } } return s . stepValue , nil }
ValuesJSON returns the json values in the current step as a StepValue.
ValuesJSON returns the json values in the current step as a StepValue .