{"id":21832689,"url":"https://github.com/tool3/pj","last_synced_at":"2026-05-18T01:06:48.273Z","repository":{"id":43484560,"uuid":"278170259","full_name":"tool3/pj","owner":"tool3","description":"ℙⅉ pretty json using prismjs and query paramters","archived":false,"fork":false,"pushed_at":"2022-02-28T09:13:07.000Z","size":1705,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T13:54:10.610Z","etag":null,"topics":["json","prismjs"],"latest_commit_sha":null,"homepage":"https://p-j.netlify.app/","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/tool3.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":"2020-07-08T18:53:56.000Z","updated_at":"2022-02-28T09:10:28.000Z","dependencies_parsed_at":"2022-08-23T07:50:18.170Z","dependency_job_id":null,"html_url":"https://github.com/tool3/pj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tool3/pj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fpj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fpj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fpj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fpj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tool3","download_url":"https://codeload.github.com/tool3/pj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fpj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["json","prismjs"],"created_at":"2024-11-27T19:24:58.356Z","updated_at":"2026-05-18T01:06:48.259Z","avatar_url":"https://github.com/tool3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](./public/pj.png)  \nmake pretty json using prismjs and query paramters\n\n# description\n\nPJ's single API route allows to create a single HTML page with prismjs already included, making it perfect for `iframe`s and quickly embedding highlighted JSON whether it's on READMEs, blogs, portfolio sites, or anything that can render html.\n\n# usage\n\nuse the `/json` path with query parameters to control the content of the returned document.\n\n# `GET /json?key=value`\n\nfor example, `https://p-j.herokuapp.com/json?hello=world\u0026books=[\"cool\",\"stuff\"]\u0026objects={\"name\":{\"nested\":true,\"origin\":null,\"next\":22}}`  \nwill result in\n\n![](./public/example.png)\n\n## all types supported\n\n`pj` supports all the json standard types: `string`, `number`, `boolean`, `null`, `objects` and `arrays`.  \nyou can even have nested types ! (for example: `[\"item1\", \"item2\", {\"nested\": true}]`)\n\n## show line numbers\n\nadding `showLineNumbers=true` will show line numbers on the returned highlighted code block.\n\n## theme\n\nadding `theme=\u003ctheme_name\u003e` will use that theme to render the json.  \navailable themes are the standard prismjs themes, which are:\n\n- `coy`\n- `dark`\n- `funky`\n- `okaidia`\n- `solarizedlight`\n- `tomorrow`\n- `twilight`\n\nnote that there is no need to add the `prism-` prefix or any `.css` `.min.css` to the theme name as it is automatically added.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftool3%2Fpj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftool3%2Fpj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftool3%2Fpj/lists"}