You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will be submitting a PR to add support for JSON encoding a nested struct field.
A specific API endpoint I am working on requires a URL encoded form but one of the form fields is JSON. The PR will add an option that will encode the field as a JSON string.
For example:
type A struct {
V string `json:"v"`
}
type B struct {
A A `url:"a,json"`
}
// url.Values{
// "a": {`{"v": "abc"}`}
// }