@valid ensures that the json is valid before moving on. An empty string is returned when the json is not valid, otherwise it returns the original json.
(json, arg string)
| 3225 | // @valid ensures that the json is valid before moving on. An empty string is |
| 3226 | // returned when the json is not valid, otherwise it returns the original json. |
| 3227 | func modValid(json, arg string) string { |
| 3228 | if !Valid(json) { |
| 3229 | return "" |
| 3230 | } |
| 3231 | return json |
| 3232 | } |
| 3233 | |
| 3234 | // @fromstr converts a string to json |
| 3235 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…