Live Code for JSON Query and
Transformation into a CSV file using
Jakarta EE 10 JSON-P Object Model APIs
Use Case: JSON document === CSV file (Based on logic)
Taking example of a use case where
the input is a JSON Array Document and
it is read and selectively transformed into
a CSV file using Jakarta EE 10 JSON-P APIs
We will need 👇
👉 interface JsonReader
🔍 Reads a JSON object or an array structure from an input source
👉 interface JsonObject
🔍 JsonObject class represents an immutable JSON object value
🔍 It also provides unmodifiable map view to the JSON object name/value mappings
👉 Method JsonArray getJsonArray(String name)
🔍 Returns the array value to which the specified name is mapped
👉 interface JsonArray
🔍 JsonArray represents an immutable JSON array.
🔍 It also provides an unmodifiable list view of the values in the array.
👉 method getValuesAs(Class clazz)
🔍 Returns a list view of the specified type for the array
GitHub engineersunit / java-twenty
Module: java-twenty / JSONProcessing/
Sunit Ghosh
#jakartaee #jsonp #java Jakarta EE Eclipse Foundation #parsson
Download
0 formats
No download links available.
Live Code for JSON Query and Transform into a CSV file using Jakarta EE 10 JSON-P Object Model APIs | NatokHD