rcl/golden/error_json/non_string_key.test
Ruud van Asseldonk af83cef817 Include non-string key in json key errors
Previously the key in the error had to be a string so we could not
report it, but now we can.
2024-03-17 21:46:39 +01:00

13 lines
142 B
Text

{
1: "first",
2: "second",
}
# output:
stdin:1:1
1 │ {
╵ ^
in value
at key 1
Error: To export as json, keys must be strings.