{"id":15579124,"url":"https://github.com/mabasic/phel-json","last_synced_at":"2025-03-07T04:31:01.561Z","repository":{"id":62521268,"uuid":"328464647","full_name":"mabasic/phel-json","owner":"mabasic","description":"Library for converting Phel data structures to and from JSON.","archived":true,"fork":false,"pushed_at":"2022-10-25T06:42:59.000Z","size":34,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T21:11:28.729Z","etag":null,"topics":["hacktoberfest","json","library","phel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabasic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"laravelista"}},"created_at":"2021-01-10T19:41:46.000Z","updated_at":"2025-02-02T21:05:13.000Z","dependencies_parsed_at":"2022-11-02T14:46:08.614Z","dependency_job_id":null,"html_url":"https://github.com/mabasic/phel-json","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabasic%2Fphel-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabasic%2Fphel-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabasic%2Fphel-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabasic%2Fphel-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabasic","download_url":"https://codeload.github.com/mabasic/phel-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242332031,"owners_count":20110336,"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":["hacktoberfest","json","library","phel"],"created_at":"2024-10-02T19:13:55.459Z","updated_at":"2025-03-07T04:31:01.310Z","avatar_url":"https://github.com/mabasic.png","language":"PHP","funding_links":["https://patreon.com/laravelista","https://www.patreon.com/laravelista"],"categories":[],"sub_categories":[],"readme":"# Phel-json\n\nPhel library for converting [Phel](https://phel-lang.org/) datastructures to and from JSON.\n\n[![Become a Patron](https://img.shields.io/badge/Become%20a-Patron-f96854.svg?style=for-the-badge)](https://www.patreon.com/laravelista)\n\n## Overview\n\nThis Phel library is a wrapper library around PHP `json_encode` and `json_decode` functions.\n\nIt converts Phel datastructures and basic types to a format that PHP understands before calling `(php/json_encode)`.\n\nIt generates valid Phel datastructures (map, vector) from given JSON strings using `(php/json_decode)`.\n\n## Installation\n\nFrom the command line:\n\n```bash\ncomposer require mabasic/phel-json\n```\n\n## Usage\n\nThis Phel library has two public method:\n\n- `(json/encode value {:depth 512 :flags 0})`\n- `(json/decode json {:depth 512 :flags 0})`\n\n\n```phel\n(ns your\\namespace\n    (:require mabasic\\json\\json))\n\n(def result (json/encode {:name \"Phel\"  :type \"lisp\"}))\n\n# result\n# {\"name\": \"Phel\", \"type\": \"lisp\"}\n\n(println (json/decode result))\n\n# output\n# {:name \"Phel\"  :type \"Lisp\"}\n```\n\n## For developers\n\n```\ncomposer install\ncomposer test\n```\n\n## Sponsors \u0026 Backers\n\nI would like to extend my thanks to the following sponsors \u0026 backers for funding my open-source journey. If you are interested in becoming a sponsor or backer, please visit the [Backers page](https://mariobasic.com/backers).\n\n\n## Contributing\n\nThank you for considering contributing to Phel-json! The contribution guide can be found [Here](https://mariobasic.com/contributing).\n\n\n## Code of Conduct\n\nIn order to ensure that the open-source community is welcoming to all, please review and abide by the [Code of Conduct](https://mariobasic.com/code-of-conduct).\n\n\n## License\n\nPhel-json is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabasic%2Fphel-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabasic%2Fphel-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabasic%2Fphel-json/lists"}