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

How to encode nested structure by my way? #79

Open
wqshr12345 opened this issue Aug 8, 2022 · 1 comment
Open

How to encode nested structure by my way? #79

wqshr12345 opened this issue Aug 8, 2022 · 1 comment

Comments

@wqshr12345
Copy link

As you showed in the demo, for a struct, the encoded value is “user[name]=acme&user[addr][postcode]=1234&user[addr][city]=SFO”, If I don't want to use "[]" to split, but ".", like“user.name=acme&user.addr.postcode=1234&user.addr.city=SFO”,Is there a way to achieve this?Thank you.

@vasudevm
Copy link

This is a good-to-have option in the package. However, this can be achieved by a simple string replacement code after getting the output from values.Encode().

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

2 participants