ParseJSON parses a string with format key1=val1, key2=val2, ... where values are json strings (null, or scalars, or arrays, or objects). An empty val is treated as null. If a key exists in dest, the new value overwrites the dest version.
(s string, dest map[string]any)
| 110 | // |
| 111 | // If a key exists in dest, the new value overwrites the dest version. |
| 112 | func ParseJSON(s string, dest map[string]any) error { |
| 113 | scanner := bytes.NewBufferString(s) |
| 114 | t := newJSONParser(scanner, dest) |
| 115 | return t.parse() |
| 116 | } |
| 117 | |
| 118 | // ParseIntoFile parses a filevals line and merges the result into dest. |
| 119 | // |
searching dependent graphs…