Question: Actually I have 3 questions about the same problem: controlling a window with applescript.

1. What should I do if I would press on button "Close Window" of application "Google Chrome"?
2. Is it possible to check if the window changes? For example, to see if appear a pop-up or something like that...
3. What about clicking on a specific place into a window? I mean, I know I can use

```
    tell application "System Events"
        click at {x,y}
    end tell

```

but this command use the entire screen as reference system, and I want it works only on a specific window. For example, if at "{x,y}" i put "{1,1}", applescript will click on the first item on the menu bar. Is there a way I can say to "System Events" to click at "{1,1}", but on the window "Google Chrome"?

Answer: 
You could achieve this by configuring ObjectMapper to use [`DeserializationFeature.UNWRAP_ROOT_VALUE`](https://static.javadoc.io/com.fasterxml.jackson.core/jackson-databind/2.9.8/com/fasterxml/jackson/databind/DeserializationFeature.html#UNWRAP_ROOT_VALUE) :

```
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true);

```

and annotatating your `Human` class with [`@JsonRootName`](https://static.javadoc.io/com.fasterxml.jackson.core/jackson-annotations/2.9.8/com/fasterxml/jackson/annotation/JsonRootName.html) annotation :

```
@JsonRootName("human")
public class Human {
....
}

```
You need to have a `HumanWrapper` class as your human object is defined inside you json object 

```
{
    "human": {
    }
}

```

If you able to change you API to send just a `human` object like this

```
{  
  "fname":"anjali",
  "lname":"malhotra"
}

```

Then you woudn't be bothering to have a `HumanWrapper`