changing the example to use JsonObjectRequest