Which board are you using? The line "char json_text[neighbors_file.size()]" does not allow null-termination of the contents. It should also be possible to do a single line read with "file.read(buffer, file.size())".
EDIT: How large is the file you are reading? With 3000 lines and multiple entries on each line It may very well exceed the available memory..