An open API service indexing awesome lists of open source software.

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

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()
```