Skip to content
New issue

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

Unexpected behaviour with incorrect input #60

Open
HaanJde opened this issue Apr 13, 2019 · 0 comments
Open

Unexpected behaviour with incorrect input #60

HaanJde opened this issue Apr 13, 2019 · 0 comments

Comments

@HaanJde
Copy link

HaanJde commented Apr 13, 2019

Describe the bug
Given the input, which is apparently is wrong, I would have expected an error message.

To Reproduce

$ echo '{ "atribute1": { "attribute2": "name1", "attribute3": { "attribute2": "name2" }, "attribute3": { "attribute2": "name3" }, "attribute3": { "attribute2": "name4" } } }' | jshon '.'
{
  "atribute1": {
    "attribute2": "name1",
    "attribute3": {
      "attribute2": "name4"
    }
  }
}

Expected behavior

$ cat expected_output.json 
{ 
 "atribute1": {
  "attribute2": "name1",
  "attribute3": {
   "attribute2": "name2"
  },
  "attribute3": {
   "attribute2": "name3"
  },
  "attribute3": {
   "attribute2": "name4"
  }
 }
}
$

Environment (please complete the following information):

  • OS and Version: Linux Ubuntu 18.04.2
  • jshon version:
$ jshon --version
20130901

Additional context
I suspect this to be a language problem, as the competition (jq) does the same. An error message would be nice, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant