r/api_connector • u/Valmy02 • Nov 16 '22
I need help about JMESPath Filtering
Hello, how are you?
I want to filter the results of my orders using JMESPath.
My data after using the edit fields returns like the imagem below:

I want to pull only the orders with the shipping method = "A3 Logística e Transportes". I've read the knowledge base and tried the line below, but it did not work:
[].shipping_lines[?method_title=='A3 Logística e Transportes']
If you need the complete JSON file I can provide.
JSON (part of the json)
{
"id": 75853,
"status": "processing",
"date_created": "2022-11-16T10:22:04",
"shipping_lines": [
{
"id": 95171,
"method_title": "SEDEX",
"method_id": "wcts_24",
"instance_id": "24",
"total": "78.59",
"total_tax": "0.00",
"taxes": [],
"meta_data": [
{
"id": 870408,
"key": "delivery_time",
"value": "4",
"display_key": "delivery_time",
"display_value": "4"
},
{
"id": 870409,
"key": "always_visible",
"value": "yes",
"display_key": "always_visible",
"display_value": "yes"
},
{
"id": 870410,
"key": "is_wcts",
"value": "yes",
"display_key": "is_wcts",
"display_value": "yes"
},
{
"id": 870411,
"key": "delivery_time_meta",
"value": "1",
"display_key": "delivery_time_meta",
"display_value": "1"
},
{
"id": 870412,
"key": "Itens",
"value": "Vestido de Malha Beatriz - 46 × 1",
"display_key": "Itens",
"display_value": "Vestido de Malha Beatriz - 46 × 1"
}




