added as_indexed_json method