# Best way to create multiple JSON Elements?

**URL:** <https://the.fmsoup.org/t/best-way-to-create-multiple-json-elements/1027>\
**Category:** Questions\
**Tags:** array\
**Created:** [June 3, 2020, 11:37am UTC](https://the.fmsoup.org/t/best-way-to-create-multiple-json-elements/1027 "2020-06-03T11:37:03Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![steve\_ssh](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steve_ssh/32/160_2.png) [@steve\_ssh](https://the.fmsoup.org/u/steve_ssh)\
**Post date:** [July 17, 2021, 3:04pm UTC](https://the.fmsoup.org/t/best-way-to-create-multiple-json-elements/1027/21 "2021-07-17T15:04:56Z")

</div>

Oliver: Thanks! This is such great stuff.

The Collection classes were available in Java before I left, but I was largely inexperienced with them. We were developing using the NS Foundation framework and so I was always reaching for NSMutableArray, NSMutableDictionary, etc.

@others: Apologies for going a little on a tangent here. Memory lane was calling to me...

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [July 17, 2021, 3:12pm UTC](https://the.fmsoup.org/t/best-way-to-create-multiple-json-elements/1027/22 "2021-07-17T15:12:06Z")

</div>

Cool!

Briefly continuing our tangent here, Java 8 introduced processing Collection classes using Streams with its optional declarative (non-iterative) model. Whenever possible, I do not "iterate" over collection classes.

Here's one site that shows those enhancements:  
_[Process Collections Easily With Stream in Java 8 - DZone Java](https://dzone.com/articles/process-collections-easily-with-stream-in-java-8)_

Thanks Steve!

(SET NERDMODE OFF)

@others thanks for your patience with our brief nerd-out here... LOL.

[Previous page](https://the.fmsoup.org/t/best-way-to-create-multiple-json-elements/1027.md?page=1)
