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 toJson for cyclic values #51

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Fix toJson for cyclic values #51

merged 1 commit into from
Nov 12, 2024

Conversation

MaryamZi
Copy link
Member

Purpose

Fixes: ballerina-platform/ballerina-library#7326

Also noticed ballerina-platform/ballerina-library#7348

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

}

if (value instanceof BArray listValue) {
int length = (int) listValue.getLength();
Copy link
Member Author

Choose a reason for hiding this comment

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

Assumed this would be int for values created at runtime.

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.

Jsondata moduel toJson is hanging with the CyclicValueReferenceError error
2 participants