UPDATE: Further JSONPath expressions and ABAP data structures are now supported. Check out the current feature list in our product description: www.blueantoinette.com/product/abap-jsonpath/
@carstenschlegel6975Ай бұрын
Good and structured solution in ABAP. Nice work, nice video. Does it already support multidimensional arrays? So $user.played_lottery_numbers[1][3] returns: 23 From this JSON object: { user: { name: “Max”, played_lottery_numbers: [ [10, 11, 12, 13, 14, 15], [20, 21, 22, 23, 24, 25], [30, 31, 32, 33, 34, 35] ] } } Are arrays enabled as returns? $user.played_lottery_numbers[1] returns: internal table with the numbers 20,21,22,23,24,25 Or objects as returns: $user returns: the elements of the whole object (certainly not easy to implement).
@BlueAntoinetteАй бұрын
ad 1) is not implemented ad 2+3) Default return types are strings, but optionaly you also can pass in an object with the structure you need and the object gets filled accordingly. In this case you would do: jsonpath->get_data( EXPORTING query_string = query_string CHANGING data = my_typed_data ). my_typed_data can be of any (custom) type. query_string can be at any level: eg. with $.book[*]` you need just to provide the structure at the book level. Of course you can get the whole object, but then you also need to pass in the whole structure. You can see this in action in my other video: kzbin.info/www/bejne/i4e2hGx3bd6IbpI Furthermore you can find all currently implemented use cases in the "Description" tab of this page on my site: www.blueantoinette.com/product/abap-jsonpath/