Forum Discussion
rajs2020 : If it is an array, then instead of using context of expand you can use jsonSlurper to get the value from the array by iterating over each element. Refer below link for documentation
Thanks. Is it okay to use JsonSlurper for a project at work? I wonder if this library is used widely in the software industry and specifically inside ReadyAPI. That would make me more confident about using it. I don't want a new library to become a hindrance because its hard to use, has no active maintainers etc.
- sonya_m4 years agoSmartBear Alumni (Retired)
Thanks, Himanshu for suggesting this!
rajs2020 Yes, using the JsonSlurper class is safe. It's not from an external library. It is part of the standard goovy package (groovy.json). This package is included in the current stable version - version 3, we are using it in ReadyAPI. And, it will be part of version 4 as well.
Related Content
- 4 years agobwolsleben