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

.toJSON omits commas in object Arrays. #8236

Closed
tolgaulas opened this issue Apr 23, 2018 · 1 comment
Closed

.toJSON omits commas in object Arrays. #8236

tolgaulas opened this issue Apr 23, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@tolgaulas
Copy link

OrientDB Version: 2.2.28

Java Version: 1.8.0_161

OS: windows

Expected behavior

toJSON on embedded properties should export compliant JSON. array of objects should be comma separated.

`[
    {
        "a": "b"
    },
    {
        "c": "d",
        "e": "f"
    },
    {
        "g": {
            "h": "i"
        }
    }
]

should export as is.`

Actual behavior

.toJSON don't insert commas in-between array elements
[{"@type":"d","@version":0,"a":"b"}{"@type":"d","@version":0,"c":"d","e":"f"}{"@type":"d","@version":0,"g":{"h":"i"}}]

Steps to reproduce

insert into testclass content {"testcol":[{"a":"b"},{"c":"d","e":"f"},{"g":{"h":"i"}}]}

select testcol.toJSON()

@luigidellaquila
Copy link
Member

Hi @tolgaulas

Thank you very much for reporting, I just pushed a fix, next hotfix release will solve this problem

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 2.2.35 milestone Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants