Skip to content

use Set to set a string value then the "" is miss #158

Description

@orchie

i did this
configBytes, err := j.Set(configByte, []byte("http://github.com"), "test")
then the json is
"test":http://github.com,
i try a int like configBytes, err := j.Set(configByte, []byte("2"), "test")
then it works "test":2, because it's' ok
finally i try this
configBytes, err := j.Set(configByte, []byte("\"http://github.com\""), "test")
then it works~
but i feel it's not cool and not frendly to noob,right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions