v2.0.0
New:
- JsonTree got almost fully re-implemented with a different approach for better performance. While the first version was based on recursive rendering of Composables, the new version manages the json tree in a list and renders it in a LazyColumn
- New parameter
onLoading
onJsonTree
for a Composable which is rendered during initial loading - New parameter
showIndices
onJsonTree
, which shows the index in front of each array element. Defaults to false. - New parameter
showItemCount
onJsonTree
, which shows the amount of items in arrays and objects. Defaults to true. - New parameter
indexColor
onTreeColors
for the newly added array indices
Breaking changes:
- The new version uses a LazyColumn, which should not be placed in a another scrollable container
- If you are using a custom instance of
TreeColors
, then you need to add a value for the newindexColor
- Add the new parameter
onLoading
toJsonTree
, which renders the given Composable during the initial loading - Compile SDK 34
- JDK 17