{"id":18320863,"url":"https://github.com/bazaarvoice/rison","last_synced_at":"2025-04-05T22:32:06.214Z","repository":{"id":3378721,"uuid":"4426453","full_name":"bazaarvoice/rison","owner":"bazaarvoice","description":"Rison encoder and decoder for the Jackson streaming JSON processor","archived":false,"fork":false,"pushed_at":"2025-01-30T11:35:56.000Z","size":142,"stargazers_count":16,"open_issues_count":4,"forks_count":7,"subscribers_count":53,"default_branch":"main","last_synced_at":"2025-03-21T13:12:59.580Z","etag":null,"topics":[],"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/bazaarvoice.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2012-05-23T23:11:22.000Z","updated_at":"2023-06-14T11:30:24.000Z","dependencies_parsed_at":"2023-01-13T12:28:23.108Z","dependency_job_id":null,"html_url":"https://github.com/bazaarvoice/rison","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Frison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Frison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Frison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Frison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazaarvoice","download_url":"https://codeload.github.com/bazaarvoice/rison/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411238,"owners_count":20934650,"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-11-05T18:17:42.684Z","updated_at":"2025-04-05T22:32:05.838Z","avatar_url":"https://github.com/bazaarvoice.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rison Parser and Generator for Jackson\n======================================\n\nA plugin for the [Jackson streaming JSON processor v2.10.x](http://wiki.fasterxml.com/JacksonHome) that adds\nsupport for reading and writing JSON objects in the [Rison](http://mjtemplate.org/examples/rison.html)\nserialization format.\nSupport for Jackson:\n - [v2.9.x](https://github.com/bazaarvoice/rison/tree/rison-2.9.9)\n - [v2.6.x](https://github.com/bazaarvoice/rison/tree/rison-2.6.3)\n - [v2.1.x](https://github.com/bazaarvoice/rison/tree/rison-2.1.1)\n - [v2.0.x](https://github.com/bazaarvoice/rison/tree/rison-2.0.1)\n - [v1.9.x](https://github.com/bazaarvoice/rison/tree/rison-1.2)\n is also available.\n\nRison expresses the exact same data structures as JSON, but is much more compact and readable than JSON\nwhen encoded in a URI.\n\nSee https://github.com/Nanonid/rison for more information about Rison.\n\nUsage\n-----\n\nIn your code, create a `RisonFactory` instead of a `JsonFactory`. Then read and write objects just\nas you do regular JSON objects. All the Jackson mapper facilities are available with Rison.\n\n```java\nimport com.bazaarvoice.jackson.rison.RisonFactory;\n\nObjectMapper RISON = new ObjectMapper(new RisonFactory());\n\nString string = \"(a:0,b:foo,c:'23skidoo')\";\nMap map = RISON.readValue(string, Map.class);\n...\nRISON.writeValueAsString(map);\n```\n\nO-Rison\n-------\n\nIf you know the value you wish to serialize is always an object, you can configure the `RisonFactory`\nto omit the containing `(` and `)` characters.\n\n```java\nObjectMapper O_RISON = new ObjectMapper(new RisonFactory().\n    enable(RisonGenerator.Feature.O_RISON).\n    enable(RisonParser.Feature.O_RISON));\n\nString string = \"a:0,b:foo,c:'23skidoo'\";\nMap map = O_RISON.readValue(string, Map.class);\n...\nSystem.out.println(O_RISON.writeValueAsString(map));\n```\n\n\nA-Rison\n-------\n\nIf you know the value you wish to serialize is always an array, you can configure the `RisonFactory`\nto omit the containing `!(` and `)` characters.\n\n```java\nObjectMapper A_RISON = new ObjectMapper(new RisonFactory().\n    enable(RisonGenerator.Feature.A_RISON).\n    enable(RisonParser.Feature.A_RISON));\n\nString string = \"item1,item2,item3\";\nList list = A_RISON.readValue(string, List.class);\n...\nSystem.out.println(A_RISON.writeValueAsString(list));\n```\n\n\nOther Implementations\n---------------------\nSee the [Rison](http://mjtemplate.org/examples/rison.html) page for implementations in JavaScript,\nPython and Ruby.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Frison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazaarvoice%2Frison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Frison/lists"}