The documentation in Jackson is horrible and it only states how it is possible to create JSON from objects and streams, not piece by piece. I cannot find the term to be able to search for more examples/documentation.

I would like to do something like the following.

```
JsonObject jsonObject = new JsonObject().add("type", "unregister").add("id",id);
return jsonObject.toString();

```

Which would return `{"type":"unregister","id":2}` as an example. Can anyone nudge me in the right direction?