Forum Discussion
I have attached the initial schema of the JSON I am working with. It has several pieces to it (Forms, Fields). Based on the different Types of data I am dealing with I use a variety of data from various sources (xlsx, randomization, hardcoded). to fill in the values and data fields to build the final request body that goes to the API. The schema can change some based on what state we are dealing with as well. After the initial schema is created my code will parse it and fill in the data fields based on the types for the different parts of the JSON schema. I have been able to use the above code snippet to build the final JSON at the end of the code after I have built all the separate JSON pieces (that works). What I was hoping for was something to replace the one time build of the JSON (see bolded code in my initial post) with one that does an append instead for each JSON piece. Just curious if such a code command exists that does an append.
Related Content
- 4 years ago
- 4 years ago
- 5 years ago