Comments (2)
This should work for JSON:
${ _json.evalJsonPath(_request.bodyText, '.product.id') }
For reference, please see JSON Data Functions.
Similarly, there are a few XML Data Functions for XML payloads.
from apisimulator.
That's pretty powerful 😮
Thanks for the tip!
from apisimulator.
Related Issues (20)
- Enable HTTPS in APISimulator HOT 9
- (not equals) Matching Operations is not working properly HOT 5
- Support "file" as source for callbacks' request body HOT 5
- Unable to reach host specified in callback HOT 4
- Config file for environment-specific settings HOT 1
- Enhance callback workflows with assertions as well HOT 2
- Enhance DSL to loop from data sources HOT 3
- Returning data from multiple files stored in the simulation HOT 3
- Consider using `Eclipse Temurin` and `Alpine` instead HOT 4
- Getting intermittently error "java.net.BindException: Address already in use: connect" HOT 2
- The first data line in a CSV is not matched/retrieved (data provided through simlet's yaml configuration) HOT 2
- Does the SQL Data Store feature support other databases than H2? HOT 1
- Folder organization and 404 on simlet HOT 2
- Support for gRPC
- Augment Template Functions HOT 2
- Short-Circuit Use of External Files HOT 4
- Tricky Type Inference With External JSON Files HOT 7
- Support for Server-Side Events / Streaming Endpoint HOT 3
- Better logging when matching simulations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisimulator.