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

Fix for container conversions in JsonConverter #417

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

litvinovg
Copy link
Contributor

@litvinovg litvinovg commented Aug 29, 2023

What does this pull request do?

Fixes Json converter conversion of json arrays and json objects.
Recently added fix to use node.asText() for node serialization doesn't work for json containers as asText() always return "" for containers.

Interested parties

@chenejac @ivanmrsulja @mmannings

…ways return empty string for container nodes
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg thanks. Hopefully, after this fix, serialization of nodes wouldn't cause any issue.

Copy link

@mmannings mmannings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the exception:
"Json string cannot be null", when sending the GET request on /api/rest/1/report_generator/resource:{resource_id}

Thanks @litvinovg

@chenejac chenejac merged commit c9879cc into vivo-project:dynapi-1.14 Aug 30, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants