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

from_str method failing with integer types. #16

Open
whizsid opened this issue Feb 26, 2020 · 0 comments
Open

from_str method failing with integer types. #16

whizsid opened this issue Feb 26, 2020 · 0 comments

Comments

@whizsid
Copy link

whizsid commented Feb 26, 2020

Error occured after I passed a string that contains integer/float in the body.

Error

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax("trailing characters", 1, 3)', src/libcore/result.rs:1188:5

Reproducible code

extern crate serde_hjson;

use serde_hjson::{from_str,Value};

fn main (){
    let json:Value = from_str("123").unwrap();
}

Reason

Why this method is not implemented yet? Can you please implement this?

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

No branches or pull requests

1 participant