Minor changes to comply with the changed 2.2 Json api

I have found two issues with the examples, after moving to 2.2

The first one is a simple method name change.
The method getTextValue() is replaced by textValue().

The second one is a missing import for the ObjectNode class.

Without the aforementioned changes the examples won't compile