[New Feature]: Expose JSON path as a Ballerina library function #41908
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
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.
The text was updated successfully, but these errors were encountered: