...
This commit is contained in:
parent
205f82dc25
commit
8ea98e8586
1 changed files with 9 additions and 2 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"encoding/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GetNotesOptions struct {
|
type GetNotesOptions struct {
|
||||||
|
@ -33,12 +34,18 @@ Def(
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("unescapeBody: %q\n", unesc)
|
fmt.Printf("unescapeBody: %q\n", unesc)
|
||||||
values, err := url.ParseQuery(string(body))
|
mp := map[string] any{}
|
||||||
|
err = bond.ParseStr(unesc, mp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("err:%s\n", err)
|
fmt.Printf("err:%s\n", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("Values: %q\n", values)
|
js, err := json.MarshalIndent(mp, "", "\t")
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("err:%s\n", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fmt.Printf("\nparsed: %v\n", string(js))
|
||||||
c.SetStatus(statuses.OK)
|
c.SetStatus(statuses.OK)
|
||||||
}),
|
}),
|
||||||
//),
|
//),
|
||||||
|
|
Loading…
Reference in a new issue