Fixes bug in to_indexed_json example

The previous example attempted to disable JSON roots but
didn't reference "self" so it only assigned a variable.