fix json indexing and searching