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

converted JSON object not capturing spaces between tags #694

Closed
5 of 7 tasks
satyajitnayk opened this issue Nov 14, 2024 · 2 comments
Closed
5 of 7 tasks

converted JSON object not capturing spaces between tags #694

satyajitnayk opened this issue Nov 14, 2024 · 2 comments

Comments

@satyajitnayk
Copy link

  • 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

When I am parsing xml to Json with spaces between tags, it is not reflecting in the expected output

Input

<a:r>
  <a:solidFill>
      <a:srgbClr val="000000" />
    </a:solidFill>
  <a:t>   </a:t>
</a:r>

Code

Output

We can observe that "a:t": [] is empty array instead of "a:t": [" "]
image

expected data

[
    {
        "a:r": [
            {
                "a:solidFill": [
                    {
                        "a:srgbClr": [],
                        ":@": {
                            "@_val": "000000"
                        }
                    }
                ]
            },
            {
                "a:t": ["    "]
            }
        ]
    }
]

Would you like to work on this issue?

  • Yes
  • No

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

Copy link

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

@satyajitnayk
Copy link
Author

satyajitnayk commented Nov 14, 2024

sorry! my mistake I have enabled Trim
image

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