Add "limit" argument to search
Guard against invalid JSON

(can happen with truncated strings)
Add "limit" to schemaSearch()