Indexing record using JSON to free up extrif relationships