{"id":17220106,"url":"https://github.com/leonardiwagner/jsonbox-java","last_synced_at":"2026-03-10T06:31:03.291Z","repository":{"id":57735683,"uuid":"209995961","full_name":"leonardiwagner/jsonbox-java","owner":"leonardiwagner","description":"JVM library for jsonbox.io storage","archived":false,"fork":false,"pushed_at":"2020-10-13T16:29:25.000Z","size":65,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T04:24:21.730Z","etag":null,"topics":["json","mongodb","storage"],"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/leonardiwagner.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":null,"security":null,"support":null}},"created_at":"2019-09-21T14:07:15.000Z","updated_at":"2019-10-11T19:41:30.000Z","dependencies_parsed_at":"2022-08-23T16:20:11.457Z","dependency_job_id":null,"html_url":"https://github.com/leonardiwagner/jsonbox-java","commit_stats":null,"previous_names":["leonardiwagner/jsonbox"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/leonardiwagner/jsonbox-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardiwagner%2Fjsonbox-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardiwagner%2Fjsonbox-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardiwagner%2Fjsonbox-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardiwagner%2Fjsonbox-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardiwagner","download_url":"https://codeload.github.com/leonardiwagner/jsonbox-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardiwagner%2Fjsonbox-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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","mongodb","storage"],"created_at":"2024-10-15T03:51:34.208Z","updated_at":"2026-03-10T06:31:03.252Z","avatar_url":"https://github.com/leonardiwagner.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonbox-java  [![Travis (.org)](https://img.shields.io/travis/leonardiwagner/jsonbox-java?style=flat-square\u0026logo=travis)](https://travis-ci.org/leonardiwagner/jsonbox-java) [![Coveralls github](https://img.shields.io/coveralls/github/leonardiwagner/jsonbox-java?style=flat-square)](https://coveralls.io/github/leonardiwagner/jsonbox-java) [![Maven Central](https://img.shields.io/maven-central/v/io.jsonbox/jsonbox?color=light-green\u0026logo=java\u0026style=flat-square)](https://search.maven.org/artifact/io.jsonbox/jsonbox)\n\nJVM library for [jsonbox.io](https://jsonbox.io): A HTTP based JSON storage. It lets you store, read \u0026 modify JSON data over HTTP APIs for FREE. Ideal for small projects, prototypes or hackathons, where you don't have to spin up your own data store.\n\nDemo example:\n```java\nJsonBoxStorage storage = new JsonBoxStorage(\"box30c83d77bab82ce487665\");\n// create a new record\nstorage.create(adapter.toJson(new Record(\"john\")));\n// read records\nList\u003cRecord\u003e records = adapter.fromJson(storage.read());\n```\n## Starting Guide\n1. [Installation](https://github.com/leonardiwagner/jsonbox-java/wiki/Usage-examples#1-add-jsonbox-library-in-your-project-dependencies-if-you-are-using-gradle-scala-or-kotlin-see-their-dependency-script-here-for-clojure-we-have--an-exclusive-guide-here)\n2. [Basic examples](https://github.com/leonardiwagner/jsonbox-java/wiki/Usage-examples#4-now-you-can-use-any-function-from-the-documentation-to-create-read-update-and-delete-records-in-your-store-or-collection-see-examples)\n3. [Advanced examples with JSON parsing](https://github.com/leonardiwagner/jsonbox-java/wiki/Usage-examples-with-JSON-parsing)\n\n## Documentation\n\n### Constructors\n\n| Name | Summary |\n|-----|---|\n|`JsonBoxStorage()`                       | Instance for a jsonbox.io box, a random box id will be generated, you can use `getBoxId()` to retrieve the generated box id |\n|`JsonBoxStorage(String boxId)`                       | Instance for a jsonbox.io box |\n|`JsonBoxStorage(String boxId, String collectionId)`  | Instance for a jsonbox.io collection inside a box |\n\n### Functions\n\n| Name | Summary |\n|-----|---|\n|`create(String json)`                       | Create a new record |\n|`read()`  | Read all records |\n|`read(int skip, int limit, String filter, String sort)` | Read records with pagination, filtering and sorting* |\n|`update(String recordId, String json)`  | Update a record by a given record id |\n|`delete(String recordId)` | Delete a single record by a given record id |\n|`deleteFiltering(String filter)` | Delete multiple records using filtering*|\n\n*filtering and sorting:\n- `filter` usage [here](https://github.com/vasanthv/jsonbox#filtering)\n- `sort` by a json property, use `-` for descending sorting, example: `\"-name\"`.\n\n#### Getters\n| Name | Summary |\n|-----|---|\n|`getBoxId()` | current box id |\n|`getCollectionId()` | current collection id (returns `null` if you are not using a collection) |\n\n#### Helper Functions for reading\n| Name | Summary |\n|-----|---|\n|`readFiltering(String filter)`  | Read applying only filtering |\n|`readSorting(String sort)` | Read applying only sorting |\n|`read(int skip, int limit)`  | Read applying only pagination** |\n|`read(int skip, int limit, String filter)` | Read applying only pagination and filtering** |\n\n**default sorting is `_createdOn` desc.\n\n## Contribution\n\nFeel free to contribute. Just create an issue before sending a Pull Request.\n\n## License\n\n[Apache 2.0][apache-license]\n\n[apache-license]:./LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardiwagner%2Fjsonbox-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardiwagner%2Fjsonbox-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardiwagner%2Fjsonbox-java/lists"}