start with basic example usage
ignore more
php 5.3 doesn't support array dereferencing
we want to support php 5.3
fix another instance of array de-referencing
skip JSON encode parameter
encode the array, not just the members
naive but working example