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

Dora cant parse JSON with single quotes #11

Open
cooliscool opened this issue Nov 24, 2021 · 0 comments
Open

Dora cant parse JSON with single quotes #11

cooliscool opened this issue Nov 24, 2021 · 0 comments

Comments

@cooliscool
Copy link

Describe the bug:

parsing the JSON string {'boo':'moo'} causes dora process to crash due to Out of Memory Error

What version of Go are you using (go version)?

go version go1.17.1 linux/amd64

To Reproduce:

Steps to reproduce the behavior.

func main(){
	str := `{'boo':'moo'}`

	c, err := dora.NewFromString(str)
	if err != nil {
	  fmt.Println(err)
	}
}

Expected behavior:

Ideally, it should be able to parse the JSON or else throw an error saying it's unable to parse.

@cooliscool cooliscool changed the title cant parse single quote JSON dora cant parse single quote JSON Nov 24, 2021
@cooliscool cooliscool changed the title dora cant parse single quote JSON dora cant parse JSON with single quotes Nov 24, 2021
@cooliscool cooliscool changed the title dora cant parse JSON with single quotes Dora cant parse JSON with single quotes Nov 24, 2021
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