{"id":22588276,"url":"https://github.com/danini-the-panini/json-lisp-ruby","last_synced_at":"2025-07-23T19:32:07.124Z","repository":{"id":56879591,"uuid":"121842357","full_name":"danini-the-panini/json-lisp-ruby","owner":"danini-the-panini","description":"Execute lisp-like s-expressions written in JSON (Ruby Gem Edition)","archived":false,"fork":false,"pushed_at":"2018-02-17T12:03:19.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-11T15:48:41.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/danini-the-panini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-17T09:24:42.000Z","updated_at":"2021-07-11T03:15:49.000Z","dependencies_parsed_at":"2022-08-20T23:40:08.445Z","dependency_job_id":null,"html_url":"https://github.com/danini-the-panini/json-lisp-ruby","commit_stats":null,"previous_names":["jellymann/json-lisp-ruby"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danini-the-panini/json-lisp-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danini-the-panini%2Fjson-lisp-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danini-the-panini%2Fjson-lisp-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danini-the-panini%2Fjson-lisp-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danini-the-panini%2Fjson-lisp-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danini-the-panini","download_url":"https://codeload.github.com/danini-the-panini/json-lisp-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danini-the-panini%2Fjson-lisp-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266738301,"owners_count":23976414,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-08T08:08:59.306Z","updated_at":"2025-07-23T19:32:07.103Z","avatar_url":"https://github.com/danini-the-panini.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON::Lisp\n\nExecute lisp-like s-expressions written in JSON.\n\nThe aim of JSON-Lisp is to allow for an executable code format that is simple and portable, as well as easy to parse and execute in a controlled, sandboxed environment. This allows it to be stored in a database, sent over an HTTP connection, collected from user input, and executed on either a client or a server's machine.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'json-lisp'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install json-lisp\n\n## Usage\n\n```ruby\nconstants = {\n  \"a\" =\u003e 5,\n  \"b\" =\u003e 7,\n  \"+\" =\u003e -\u003e (a, b) { a + b },\n  \"-\" =\u003e -\u003e (a, b) { a - b }\n}\n\njson_lisp_env = JSON::Lisp::Env.new(constants)\n\njson_lisp_env.evaluate([\"+\", \"a\", \"b\"])           #=\u003e 12\njson_lisp_env.evaluate([\"-\", \"a\", 3])             #=\u003e 2\njson_lisp_env.evaluate([\"+\", 2, \"b\"])             #=\u003e 9\njson_lisp_env.evaluate([\"+\", \"a\", [\"-\", \"b\", 2]]) #=\u003e 10\n\njson_lisp_env.evaluate_json('[\"+\", \"a\", [\"-\", \"b\", 2]]') #=\u003e 10\n```\n\n## See Also\n\n1. [JSON Lisp for JavaScript](https://github.com/jellymann/json-lisp-js)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jellymann/json-lisp-ruby.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanini-the-panini%2Fjson-lisp-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanini-the-panini%2Fjson-lisp-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanini-the-panini%2Fjson-lisp-ruby/lists"}