moved as_indexed_json method