Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7703

Add support for Iterable with Closure to JsonBuilder/StreamingJsonBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.5
    • 2.4.6
    • JSON
    • None

    Description

      JsonBuilder and StreamingJsonBuilder currently support passing a Collection and a Closure, the closure will be applied to each item in the collection. An improvement would be to support the more general Iterable type.

      See https://github.com/apache/groovy/pull/203

      Attachments

        Activity

          People

            jwagenleitner John Wagenleitner
            jwagenleitner John Wagenleitner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: