Get the whole json in a single line and from there into lines of exactly one complete json object each.
«"project": "pleiade",
"name": "Pléiade v5",
"url": "http:pleiade.test.acmeserver.com"»
«"project": "rnvp",
"name": "RNVP preprod",
"url": "https://rnvp.preprod.acmeserver.com"»
«"name": "application de réservation de salles",
"url": "http://ars.test.acmeserver.com",
"project": "resa"»
add an experiment for capturing a desired kind of data. Normally, only the name would be on display, between AKA_ and _YET.
«"project": "pleiade",
AKA_Pléiade v5_YET»
«"project": "rnvp",
AKA_RNVP preprod_YET»
«AKA_application de réservation de salles_YET»
add fetching "name" and "project" values and arrange them into NAME^PROJECT.
«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
«"name": "application de réservation de salles",
"url": "http://ars.test.acmeserver.com",
"project": "resa"»
As we can't be sure of the order of the index within json objects,we have to have two scans: one name then project and the other one as project then name. This method can be extended up to three fields ; beyond that would be a nightmare (can we sort the fields within a json object?).
«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
«application de réservation de salles^resa»
Sort the lines
«application de réservation de salles^resa»
«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
only display the PROJECT value (the part after after "^").
«resa»
«pleiade»
«rnvp»
=======================
Job done!!!
Now for the two oddities:
1) the syntax search-replace::regexp and not just search-replace:regexp was quite a nasty surprise. It should be noted or given an example in the doc.
2) the dot . in regexp should include space (regular space char, of code 32). it does not. This explains the results in the experimental step 2. The workaround is to replace the dot by [\s\S] which is not helping the readability of the regexes. See https://regular-expressions.mobi/dot.html for more information.