We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally opened by @enisoc in cuelang/cue#21
As of current master, the following CUE program doesn't evaluate as expected:
import "encoding/json" input: "{\"one\": 1, \"two\": 2, \"three\": 3}" result: json.Unmarshal(input)
Expected output:
{ "input": "{\"one\": 1, \"two\": 2, \"three\": 3}", "result": { "one": 1, "two": 2, "three": 3 } }
Actual output (cue export):
cue export
{ "input": "{\"one\": 1, \"two\": 2, \"three\": 3}", "result": { "Valid": 1, "Compact": 2, "Indent": 3 } }
Notice the field names in the unmarshaled result have been replaced with the names of methods in pkg/encoding/json.
pkg/encoding/json
The text was updated successfully, but these errors were encountered:
Original reply by @mpvl in cuelang/cue#21 (comment)
fixed
Sorry, something went wrong.
No branches or pull requests
Originally opened by @enisoc in cuelang/cue#21
As of current master, the following CUE program doesn't evaluate as expected:
Expected output:
Actual output (
cue export
):Notice the field names in the unmarshaled result have been replaced with the names of methods in
pkg/encoding/json
.The text was updated successfully, but these errors were encountered: