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

xml to json array #59

Open
Boy2ang opened this issue Jun 21, 2020 · 0 comments
Open

xml to json array #59

Boy2ang opened this issue Jun 21, 2020 · 0 comments

Comments

@Boy2ang
Copy link

Boy2ang commented Jun 21, 2020

hi, i have a problem

like this:

<school>
    <students>
        <count>1</count>
        <student>
            <name>stu1</name>
            <id>1</id>
        </student>
    </students>
</school>

I need to convert source to target,Can someone help me?

"school":{
        students:{
            "count":"1",
            "student":[
                {
                    "name":"stu1",
                    "id":"1"
                }
            ]
        }
}
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