Skip to content

The CLI will now output a quoted string with escape characters instead of raw json like the previous version.ย #711

@angeld7

Description

@angeld7
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Have you checked the docs for helpful APIs and examples?

Description

The CLI now outputs a string instead of valid JSON, like the previous versions did.

Examples:
version 4.5.1

echo '<xml><item>test</item></xml>' | fxparser 
{
    "xml": {
        "item": "test"
    }
}

version 4.5.2

echo '<xml><item>test</item></xml>' | fxparser 
"{\n    \"xml\": {\n        \"item\": \"test\"\n    }\n}"

Input

<xml><item>test</item></xml>

Code

echo '<xml><item>test</item></xml>' | fxparser 

Output

"{\n \"xml\": {\n \"item\": \"test\"\n }\n}"

expected data

{ "xml": { "item": "test" } }

Would you like to work on this issue?

  • Yes
  • No

I cannot commit much time but I have opened a PR that fixes it locally for me. I'm not familiar enough with the project to add unit tests that will ensure this doesn't become a future regression.

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions