I'm NOT Java developer, but right now I'm writing some tests with it, and I'm stuck with simple issue (I suppose it's simple for "javaGuys").
In my class Test I'm getting variable that contain some string that LOOKS LIKE OBJECT in JavaScript(I mean JSON). Here it is:
String myStringThatLooksLikeJSON = client.getStartSessionContent();
In debug mode that string's content...:
myStringThatLooksLikeJSON = "{"context":"blabla","count":0,"value":[{"args":"speech-model","id":"1203"}]}"
And now my question. How can I get just value of, for example, "args"?
In JavaScript it can be done easily like:
console.log(myStringThatLooksLikeJSON.value[0].args, "args");
And in my console I can see speech-model args
.
But how to do that in Java? Is it possible? THE MOST PURE COMMON AND SIMPLE WAY! Plz anyone help :) Hope I was clear enough.