Skip to content

Commit d45b5c3

Browse files
authored
Merge pull request #52 from apelisse/json-marshaling-mistake
Use json Unmarshaler rather than yaml
2 parents a8423fd + 0f41ead commit d45b5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

value/unstructured.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func FromYAML(input []byte) (Value, error) {
5858
func FromJSON(input []byte) (Value, error) {
5959
var decoded interface{}
6060

61-
if err := yaml.Unmarshal(input, &decoded); err != nil {
61+
if err := json.Unmarshal(input, &decoded); err != nil {
6262
return Value{}, err
6363
}
6464

0 commit comments

Comments
 (0)