{"id":13422608,"url":"https://github.com/Lapple/react-json-inspector","last_synced_at":"2025-03-15T12:30:44.936Z","repository":{"id":21970533,"uuid":"25295314","full_name":"Lapple/react-json-inspector","owner":"Lapple","description":"React JSON inspector component","archived":true,"fork":false,"pushed_at":"2021-08-26T23:56:15.000Z","size":284,"stargazers_count":293,"open_issues_count":17,"forks_count":68,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-12T17:05:39.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lapple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-16T09:29:48.000Z","updated_at":"2025-01-19T02:06:53.000Z","dependencies_parsed_at":"2022-07-15T13:30:27.232Z","dependency_job_id":null,"html_url":"https://github.com/Lapple/react-json-inspector","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lapple%2Freact-json-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lapple%2Freact-json-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lapple%2Freact-json-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lapple%2Freact-json-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lapple","download_url":"https://codeload.github.com/Lapple/react-json-inspector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243707362,"owners_count":20334626,"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":[],"created_at":"2024-07-30T23:00:48.768Z","updated_at":"2025-03-15T12:30:44.570Z","avatar_url":"https://github.com/Lapple.png","language":"JavaScript","funding_links":[],"categories":["Dev Tools","Uncategorized"],"sub_categories":["Inspect","Uncategorized"],"readme":"# React JSON Inspector Component\n\n![Component screenshot](http://i.imgur.com/8619dv9.png)\n\nReact-based JSON inspector that features tree expansion and fast search.\n\n[Live demo](https://lapple.github.io/react-json-inspector/)\n\n### Installation\n\n    npm install react-json-inspector\n\n### Usage\n\n```jsx\nvar Inspector = require('react-json-inspector');\nvar data = { /* ... */ };\n\nReact.render(\n    \u003cInspector data={ data } /\u003e,\n    document.getElementById('inspector')\n);\n```\n\nMake sure to include `json-inspector.css` in your stylesheet. Feel free to\noverride or amend default styles, for instance, when using a dark background.\n\n### Run the example\n\n```bash\ncd /path/to/project\nnpm install\nnpm run watch\n```\n\nThen, visit http://localhost/path/to/project/example\n\n### Properties\n\n#### props.data\n\nThe only required propery, JSON object or array to inspect.\n\n#### props.className\n\nThe class name to be added to the root component element.\n\n#### props.search\n\nSearch bar component that accepts `onChange`, `data` and `query` properties.\nDefaults to built-in search bar. Pass `false` to disable search.\n\n#### props.searchOptions\n\nOptional parameters for search (toolbar). Must be an object.\n\n- `debounceTime`, wait time (ms) between search field `onChange` events before actually performing search. This can help provide a better user experience when searching larger data sets. Defaults to `0`.\n\n#### props.query\n\nOptional initial search query, defaults to an empty string.\n\n#### props.interactiveLabel\n\nPass component factory that would receive the following properties:\n\n- `value`, either stringified property value or key value that is being interacted with,\n- `originalValue`, either the original property value or key value,\n- `isKey`, boolean flag to differentiate between interacting with keys or properties,\n- `keypath`, keypath of the node being interacted with, will be the same for keys and properties\n\nCan be used to create custom input fields for JSON property names and primitive\nvalues, see [#3](https://github.com/Lapple/react-json-inspector/issues/3)\nfor more information.\n\n#### props.onClick\n\nCallback to be run whenever any key-value pair is clicked. Receives an object\nwith `key`, `value` and `path` properties.\n\n#### props.validateQuery\n\nFunction to check whether the entered search term is sufficient to query data.\nDefaults to `(query) =\u003e query.length \u003e= 2`.\n\n#### props.isExpanded\n\nOptional predicate that can determine whether the leaf node should be expanded\non initial render. Receives two arguments: `keypath` and `value`. Defaults to\n`(keypath, query) =\u003e false`.\n\n#### props.filterOptions\n\nOptional parameters for filterer (search). Must be an object.\n\n- `cacheResults`, Set to `false` to disable the filterer cache. This can sometimes provide performance enhancements with larger data sets. Defaults to `true`.\n- `ignoreCase`, Set to `true` to enable case insensitivity in search. Defaults to `false`.\n\n#### props.verboseShowOriginal\n\nSet to `true` for full `showOriginal` expansion of children containing search term. Defaults to `false`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLapple%2Freact-json-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLapple%2Freact-json-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLapple%2Freact-json-inspector/lists"}