artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
7.94k stars 507 forks source link

feat(JSONPath-Plus): Use library correctly #3311

Open Archangelza1 opened 1 month ago

Archangelza1 commented 1 month ago

Description

This updates the JSON parse logic so that it returns what is requested by the user using the JSONpath-plus standard queries

refactors the extractJSONPath function to improve its flexibility and simplify its implementation.

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

CLAassistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

hassy commented 1 month ago

Thanks for the PR @Archangelza1! We can't merge it as-is as it would break backwards-compatibility, but the new behavior could be introduced via extra configuration.

Archangelza1 commented 1 month ago

@hassy I have made an update to the code to allow backwards compatibility

Archangelza1 commented 1 month ago

@hassy Any update on this PR?