Subj : read json from file To : Mortifis From : echicken Date : Sat Jun 20 2020 04:16 pm Re: read json from file By: Mortifis to All on Sat Jun 20 2020 11:24:37 Mo> I have a local json file that I'd like to search for a matching unknown record Mo> # without having to read in the entire object (the file has over 200,00 records If your file looks like this: {"a":0,"b":1,"c":2,"d":3} You basically need to parse the whole thing. Or write your own special parser. If your file is like this: {"a":0,"b":1,"c":2,"d":3} {"e":4,"f":5,"g":6,"h":7} Then those are two separate JSON strings on adjacent lines. In which case you can read the file line by line, and each line will work with JSON.parse. --- echicken electronic chicken bbs - bbs.electronicchicken.com þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com .