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

When a prefix is used when import jsondata expected type validation compiler analysis won't work #6540

Comments

@LakshanWeerasinghe
Copy link

Description:
$subject

Steps to reproduce:

import ballerina/data.jsondata as jd;
import ballerina/io;

type Union xml|json;

public function main() returns error? {
    string content = string `{"name": "John"}`;
    Union value = check jd:parseString(content);
    io:println(value);
}

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment