Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 581 Bytes

File metadata and controls

18 lines (13 loc) · 581 Bytes

Milestone 4 – Stream support for JSONObject

What is Added

Item Description
JSONObject.JSONNode Immutable leaf wrapper containing an absolute path and its value.
Stream<JSONNode> JSONObject.toStream() Depth-first, lazy flattening of any JSONObject/JSONArray into a Stream. Only leaf nodes are emitted (low memory footprint).

Path conventions

  • Object keys: /parent/child
  • Array items: /array[0]/child

Run the test class

mvn -Dtest=org.json.junit.milestone4.tests.JSONObjectStreamTest test