{"id":23431901,"url":"https://github.com/vssekorin/cactoos-json","last_synced_at":"2025-04-13T00:30:24.831Z","repository":{"id":91561809,"uuid":"128178292","full_name":"vssekorin/cactoos-json","owner":"vssekorin","description":"Cactoos JSON library","archived":false,"fork":false,"pushed_at":"2018-04-08T15:33:22.000Z","size":20,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T18:22:27.945Z","etag":null,"topics":["java","oop","oop-library","oop-principles"],"latest_commit_sha":null,"homepage":"","language":"Java","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/vssekorin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-05T08:23:09.000Z","updated_at":"2023-02-14T05:07:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"085835a3-1d90-4d32-bca4-ffc75fcd16d2","html_url":"https://github.com/vssekorin/cactoos-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2Fcactoos-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2Fcactoos-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2Fcactoos-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2Fcactoos-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vssekorin","download_url":"https://codeload.github.com/vssekorin/cactoos-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650591,"owners_count":21139670,"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":["java","oop","oop-library","oop-principles"],"created_at":"2024-12-23T10:51:25.847Z","updated_at":"2025-04-13T00:30:24.798Z","avatar_url":"https://github.com/vssekorin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![EO principles respected here](http://www.elegantobjects.org/badge.svg)](http://www.elegantobjects.org)\n[![DevOps By Rultor.com](http://www.rultor.com/b/VsSekorin/cactoos-json)](http://www.rultor.com/p/VsSekorin/cactoos-json)\n\n[![Build Status](https://travis-ci.org/VsSekorin/cactoos-json.svg?branch=master)](https://travis-ci.org/VsSekorin/cactoos-json)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/VsSekorin/cactoos-json/blob/master/LICENSE.txt)\n\n**Cactoos-JSON** is JSON library in [Cactoos](https://github.com/yegor256/cactoos) family.\n\n**Motivation**:\n\n- Work with Cactoos primitives.\n- Pure OOP Json library.\n\n**Principles**.\nThese are the [design principles](http://www.elegantobjects.org#principles) behind Cactoos.\n\nJava version required: 1.8+.\n\n## Examples\n\n```java\nclass MyObject {\n    private final String str = \"str_\";\n    final Text text = () -\u003e \"text_\";\n    public int inm = 666;\n    Scalar\u003cLong\u003e lsc = () -\u003e 567L;\n    MyObject2 sec = new MyObject2();\n}\n\nclass MyObject2 {\n    private long lnm = 54L;\n    public List\u003cText\u003e list = new ListOf\u003c\u003e(\n        () -\u003e \"one\",\n        () -\u003e \"two\",\n        () -\u003e \"three\"\n    );\n    final Bytes bts = new BytesOf('b', '\\t', '3');\n}\n```\n### AllFields\n\nResult of `new AllFields(new MyObject())`:\n```json\n{\n    \"str\": \"str_\",\n    \"text\": \"text_\",\n    \"inm\": 666,\n    \"lsc\": 567,\n    \"sec\": {\n        \"lnm\": 54,\n        \"list\": [\"one\", \"two\", \"three\"],\n        \"bts\": \"b\t3\"\n    }\n}\n```\n\n### SomeFields\n\nResult of `new SomeFields(new MyObject(), \"text\", \"lsc\")`:\n\n```json\n{\n    \"text\": \"text_\",\n    \"lsc\": 567\n}\n```\n\n## How to contribute?\n\nJust fork the repo and send us a pull request.\n\nMake sure your branch builds without any warnings/issues:\n\n```\nmvn clean install -Pqulice\n```\n\n## Contributors\n\n  - [@VsSekorin](https://github.com/VsSekorin) as Vseslav Sekorin ([Blog](http://vssekorin.com))\n\n## MIT License\n\nCopyright (c) 2018 Vseslav Sekorin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvssekorin%2Fcactoos-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvssekorin%2Fcactoos-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvssekorin%2Fcactoos-json/lists"}