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

[New Feature]: Expose JSON path as a Ballerina library function #41908

Closed
warunalakshitha opened this issue Dec 19, 2023 · 1 comment
Closed
Labels
Lang/JSON Type `json` related issues Lang/LangLib Related to ballerina/lang.* modules Priority/High Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/NewFeature

Comments

@warunalakshitha
Copy link
Contributor

warunalakshitha commented Dec 19, 2023

Problem

If the given json structures have so many nested arrays, we need to traverse through json using multiple nested loops to find given json key. Even we bind that to record still we need multiple loops in code.

Solution

We can support json path capability as a ballerina library function, so developer requires less code. Even we miss the compile time type checking with that it will be very useful dealing with complex json structures at runtime if the json structure is guaranteed to be same at runtime.

@warunalakshitha warunalakshitha added Type/NewFeature Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Lang/LangLib Related to ballerina/lang.* modules labels Dec 19, 2023
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Dec 19, 2023
@warunalakshitha warunalakshitha added Lang/JSON Type `json` related issues and removed needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Dec 19, 2023
@MaryamZi
Copy link
Member

MaryamZi commented Aug 5, 2024

@MaryamZi MaryamZi closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lang/JSON Type `json` related issues Lang/LangLib Related to ballerina/lang.* modules Priority/High Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/NewFeature
Projects
None yet
Development

No branches or pull requests

3 participants