usingPairs

Add JSON name/value pairs. Typically used with a forEach call, for example:

		members.add(Event::getLabels).usingPairs(Map::forEach);
		

When used with a named member, the pairs will be added as a new JSON value object:

		{
		  "name": {
		    "p1": 1,
		    "p2": 2
		  }
		}
		
When used with an unnamed member the pairs will be added to the existing JSON object:
		{
		  "p1": 1,
		  "p2": 2
		}
		

Return

a Member which may be configured further

Parameters

<N>

the name type

<V>

the value type

pairs

callback used to provide the pairs

See also