Add Encoding JSON in Java Example