I am trying to parse and get the output given to me by a HTTP response that looks similar to this and is in a string I named 'line'. (the response contents change every time it runs)
{"needle":"opuwyxib"," haystack":["igrnevcp","ripfxjuv","amjctpsr","ucdpotrj","usqhrmvz","jblhmqgx","opuwyxib","mbhfylwt","ltkvhjsw","dhnpaurg","muyesbcg","etxmvzyd","chyfigmd","udskerov","ngoqzmve","ukeljaqw","dngqmtrz","xztpbjfs","zgdrcnbp","tkfivrld"]}
how do I extract this using Gson then use the extraction to find the index of the needle?