{"id":19510825,"url":"https://github.com/smuyyh/jsonviewer","last_synced_at":"2025-04-08T03:09:52.291Z","repository":{"id":44130495,"uuid":"112562104","full_name":"smuyyh/JsonViewer","owner":"smuyyh","description":"Android json viewer, to convert json strings to a friendly readable format, it supports expend\u0026collapsed json objects.","archived":false,"fork":false,"pushed_at":"2024-07-03T15:21:32.000Z","size":323,"stargazers_count":204,"open_issues_count":2,"forks_count":49,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T16:18:35.332Z","etag":null,"topics":["android","json","jsonformat","jsonviewer"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smuyyh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-30T03:53:33.000Z","updated_at":"2025-01-24T12:39:00.000Z","dependencies_parsed_at":"2024-11-26T08:46:01.709Z","dependency_job_id":null,"html_url":"https://github.com/smuyyh/JsonViewer","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FJsonViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FJsonViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FJsonViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FJsonViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smuyyh","download_url":"https://codeload.github.com/smuyyh/JsonViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767236,"owners_count":20992548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","json","jsonformat","jsonviewer"],"created_at":"2024-11-10T23:17:49.775Z","updated_at":"2025-04-08T03:09:52.258Z","avatar_url":"https://github.com/smuyyh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsonViewer\n\nAndroid JSON viewer, to convert JSON Strings to a Friendly Readable Format, it supports expend\u0026collapsed JSON strings.\n\n\u003cimg src=\"https://github.com/smuyyh/JsonViewer/blob/master/screenshot/screen.png?raw=true\" width=\"270\"/\u003e\n\n\n## Dependencies\n\n```\nbuildscript {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n    dependencies {\n        ...\n    }\n}\n```\n\n```\ndependencies {\n    implementation 'com.github.smuyyh:JsonViewer:1.0.7'\n}\n```\n\n## Usage\n\n**Step1**\n\n```xml\n\u003cHorizontalScrollView\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fillViewport=\"true\"\n    android:orientation=\"vertical\"\u003e\n\n\t\u003ccom.yuyh.jsonviewer.library.JsonRecyclerView\n\t    android:id=\"@+id/rv_json\"\n\t    android:layout_width=\"match_parent\"\n\t    android:layout_height=\"wrap_content\" /\u003e\n\u003c/HorizontalScrollView\u003e\n```\n\n**step2**\n\n```java\nJsonRecyclerView mRecyclewView = findViewById(R.id.rv_json);\n// bind json\nmRecyclewView.bindJson(\"your json strings.\" || JSONObject || JSONArray);\n```\n\n## Code Style\n\nThe default code style is like [https://www.json.cn](https://www.json.cn/).\n\n```java\n// Color\nmRecyclewView.setKeyColor()\nmRecyclewView.setValueTextColor()\nmRecyclewView.setValueNumberColor()\nmRecyclewView.setValueUrlColor()\nmRecyclewView.setValueNullColor()\nmRecyclewView.setBracesColor()\n\n// TextSize\nmRecyclewView.setTextSize()\n```\n\n## LICENSE\n\n```\n   Copyright 2017 smuyyh, All right reserved.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmuyyh%2Fjsonviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmuyyh%2Fjsonviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmuyyh%2Fjsonviewer/lists"}