hashicorp / hashicorp/go-memdb

JSONUnmarshal

Open
#33 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.5k
Forks
230
PR merge metrics
No merged PRs in 30d

Description

Maybe it could be useful to unmarshal json object to memdb as if root object properties are "tables" and root properties values are arrays of records (objects). How do you think?
example json:

```
{
"table1": [
{"id": "1", "field1": "value1"},
{"id": "2", "field1": "value2"}
]
}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the existing memdb schema and record-insertion APIs, then determine how JSON root properties would map to tables and arrays to records. Done should include a defined JSON input contract and tests covering the example structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.