https://github.com/androidpluto/json-render-view
Utility to render JSON strings in readable format
https://github.com/androidpluto/json-render-view
android json
Last synced: about 2 months ago
JSON representation
Utility to render JSON strings in readable format
- Host: GitHub
- URL: https://github.com/androidpluto/json-render-view
- Owner: androidPluto
- Created: 2023-07-24T06:18:34.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-08-16T19:01:16.000Z (almost 3 years ago)
- Last Synced: 2025-07-16T17:28:29.865Z (11 months ago)
- Topics: android, json
- Language: Kotlin
- Homepage:
- Size: 239 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSONREnderView
Utility to render JSON in a readable format. This also supports expand & collpase functionality.
## Integration
#### Add JSONRenderView to xml
```xml
```
#### Apply configuration *(optional)*
```java
binding.json.applyConfig(
Config.Builder()
.keyObjectColor(...)
.keyFieldColor(...)
.valueNumberColor(...)
.valueBooleanColor(...)
.valueStringColor(...)
.build()
)
```
#### Bind JSON content to view
```java
binding.json.bind(jsonContent)
```
#### Perform actions
Expand & Collapse JSON tree
```java
binding.json.action.expand()
binding.json.action.collapse()
```