parsing JSON, reorganize tests, scan and search