{"id":15992783,"url":"https://github.com/shnewto/bqjson","last_synced_at":"2025-03-17T19:32:15.213Z","repository":{"id":55627937,"uuid":"320170426","full_name":"shnewto/bqjson","owner":"shnewto","description":"bqjson - Serialize/Deserialzie BigQuery TableResults to/from JSON","archived":false,"fork":false,"pushed_at":"2021-02-01T15:04:00.000Z","size":542,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T17:16:38.359Z","etag":null,"topics":["bigquery","java","json","maven","serde","serde-json","serialization","serializer","tableresult","testing","tests"],"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/shnewto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-10T05:34:28.000Z","updated_at":"2022-12-07T20:09:54.000Z","dependencies_parsed_at":"2022-08-15T04:50:40.549Z","dependency_job_id":null,"html_url":"https://github.com/shnewto/bqjson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnewto%2Fbqjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnewto%2Fbqjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnewto%2Fbqjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnewto%2Fbqjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shnewto","download_url":"https://codeload.github.com/shnewto/bqjson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878478,"owners_count":20362433,"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":["bigquery","java","json","maven","serde","serde-json","serialization","serializer","tableresult","testing","tests"],"created_at":"2024-10-08T06:41:03.821Z","updated_at":"2025-03-17T19:32:14.785Z","avatar_url":"https://github.com/shnewto.png","language":"Java","readme":"[![GitHub Actions build](https://github.com/shnewto/bqjson/workflows/build/badge.svg?branch=main)](https://github.com/shnewto/bqjson/actions?query=workflow%3ACI)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.shnewto/bqjson.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.shnewto%22%20AND%20a:%22bqjson%22)\n\n# bqjson\nSerialize/Deserialize BigQuery TableResults (and TableResult adjacent types) to/from JSON.\n\n# Example\n```java\npackage com.github.shnewto.bqjson.SerDe;\n/* ... */\n\nclass MyBigQueryService {\n    void myBigQueryWork() {\n        /* Get a table result from BigQuery */\n        TableResult originalTableResult = bigQuery\n                .create(JobInfo.newBuilder(queryConfig)\n                .setJobId(jobId).build())\n                .waitFor()\n                .getQueryResults();\n        \n        /* Serialize TableResult to JSON */\n        String jsonString = SerDe.toJson(originalTableResult);\n        /* Deserialize the JSON back into a TableResult */\n        TableResult reconstitutedTableResult = SerDe.fromJson(jsonString, TableResult.class);\n        \n        /* ... */\n    }\n}\n```\n\n# Why?\n\nThis package came about because I wanted to write tests for parts of applications that use \nBQ TableResults, but didn't want to have to actually interact with BQ to run them. I'd hoped\nthat writing TableResults to JSON files (that I could read in and use on the next test runs) would be trivial.\nWhen it wasn't, I wrote this helper library so it could be.\n\n\n# Notes\n\nPlease raise issues or make PRs if you have a question or spot a bug :heart::heart:\n","funding_links":[],"categories":["\u003ca name=\"Java\"\u003e\u003c/a\u003eJava"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnewto%2Fbqjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshnewto%2Fbqjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnewto%2Fbqjson/lists"}