[Bug]: JSON To Record generation fails when a JSON object with recurring field name is given #40280
Labels
Area/JSONToRecordConverter
JSON to Ballerina record conversion tool related issues
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Milestone
Description
JSON To Record generation fails to generate a Ballerina record when the provided JSON object has a field name that is recurring.
Example:
the above JSON will produce a Record like the below,
But,
the above JSON fails to produce any Ballerina record.
The reason for that is
bar
is a JSON object and it has another child object with the same field namebar
.But the above JSON should produce a record like the one below.
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: