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

cannot replace when processing special character "₫" #85

Open
JackTJC opened this issue Jun 12, 2024 · 0 comments
Open

cannot replace when processing special character "₫" #85

JackTJC opened this issue Jun 12, 2024 · 0 comments

Comments

@JackTJC
Copy link

JackTJC commented Jun 12, 2024

here I have a price field to modify, and i wanna use both of Optimistic and ReplaceInPlace option because the path is very simple and i wanna a better performance, but the bellowing code doesn't works well

set, err := sjson.SetOptions(`{"test":"149.000₫"}`, "test", "255.000₫", &sjson.Options{
	Optimistic:     true,
	ReplaceInPlace: true,
})
fmt.Println(set) // output: {"test":"149.000₫"}, actually no change

above code change nothing in json and doesn't return the errNoChange

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