How do I go about this

"{"result":{"challenge":1054575878,"challenge2":{"difficulty":8,"randomness":10,"data":"7a496b1f55465e12025ee2a4c24eaa550f559d0f26bb324bc3dfe077e4cd4835"},"captcha":{"public_key":"6Le06_kSAAAAAD8X40zsM1PgPgSYzvZ1lxZJlad6","options":{"theme":"white","lang":"en"}}},"errors":[]}" is before the generation of the challenge2 token
"552e59e970be1af018b6" is what's generated which is the challenge2 token

So I’m just wondering how I would get a string like the challenge2 token based on the data provided in the “result” field

It depends on your website. No one can just say like this with the input and out put string