****** Conversion Constructors MustFromJSON creates a new Map containing the data specified in the jsonString. Panics if the JSON is invalid.
(jsonString string)
| 84 | // |
| 85 | // Panics if the JSON is invalid. |
| 86 | func MustFromJSON(jsonString string) Map { |
| 87 | o, err := FromJSON(jsonString) |
| 88 | if err != nil { |
| 89 | panic("objx: MustFromJSON failed with error: " + err.Error()) |
| 90 | } |
| 91 | return o |
| 92 | } |
| 93 | |
| 94 | // MustFromJSONSlice creates a new slice of Map containing the data specified in the |
| 95 | // jsonString. Works with jsons with a top level array |
searching dependent graphs…