Skip to content

Unexpected behaviour with incorrect input #60

Description

@haanjde

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions