surrealdb / surrealdb.java

SurrealDB SDK for Java
https://surrealdb.com
Apache License 2.0
67 stars 21 forks source link

Feature: Handle parsing of JSON into Value type #63

Closed phughk closed 1 week ago

phughk commented 1 year ago

Is your feature request related to a problem?

The SurrealDB server sends JSON responses that match Value (enum) types.

Obviously, JSON is lossy. But it would be really cool if we could convert it to the java Value type declared in the refactor package.

Describe the solution

Handle strings, numbers, objects, and arrays for JSON into the Value type.

Alternative methods

This is open to interpretation. Feedback on the request. Best advice is to keep it simple so we can change it when we need to.

SurrealDB version

SurrealDB beta-9; java driver commit 50aa1d6

Contact Details

hugh@surrealdb.com

Is there an existing issue for this?

Code of Conduct

emmanuel-keller commented 1 week ago

SurrealDB driver v0.2.0 delegates the transport layer to the embedded Rust SDK