What are the differences between JSON-LD and JSON

2020-07-10 07:43发布

问题:

I'm as new as can be to JSON. I understand that both JSON-LD and JSON Schema are used to validate JSON data. I, however, cannot find much information comparing and contrasting the two.

Which one is better?
Why use one over the other?
Advantages vs disadvantages?
Can these two even be compared?
Am I misunderstanding what JSON-LD and JSON Schema are?

回答1:

JSON-LD's goal is to make JSON documents understandable by machines by linking it to well-defined vocabularies. It is not used to validate JSON data. JSON Schema is used for that purpose though. So you can't really compare the two.



标签: json json-ld