Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonb: Introduce JsonDom type and parsing/conversion #147

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Conversation

blackbeam
Copy link
Owner

You can now do the following:

fn example_print_jsonb(value: jsonb::Value) {
    let dom = value.parse().expect("error parsing jsonb");
    println!("JSON: {}", serde_json::Value::from(dom));
}

Note that opaque datetime and decimal values are converted to JSON strings (see docs on the JsonDom struct).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant