Actually I am doing some testing in which I am getting response from one of our endpoint which looks like multiple individual json objets and I need to convert them in such a form like a string or a single json object so that I can perform some action on them.
Json response Example :-
{"user_name":"testUser","email":"test@test.com"}
{"country":"Australia","Gender":"Male"}
{"type":"Customer_Account","membership":"Annual"}
Here the issue is I can not perform any operation until I convert it to some string or Json object.
And cannot control response as its coming from some third party application.
Any idea how to convert it using JavaScript or Java will be a great help.