This is one of the most important schema markup questions out there. JSON-LD is the preferred file format for search engines like Google and it represents a way to encode your linked data in a JSON file format. It is relatively easy for both humans and machines to organize this data in a JSON-LD format and that is why it was picked to be the modern default file format by the search engines.