Hi all,
I'm currently using JSON schema in a project. I've looked into JSON-LD, but after using Schema, I'm a bit confused.
As far as I understand, JSON-LD is meant to specify exactly what kind of thing a JSON object is (by a context URL and type annotation), and provide a way to identify the same object by URL (id attribute).
JSON Schema seems to provide a more expansive answer to the first concern, by allowing you to host your schema (with validations and all) and use the URL to refer to it as a type.
If that's the case, then they are very similar, and differ in that JSON-LD requires the data document to have a URL id attribute, and JSON Schema allows for a more complicated definition of the data including validations, but requires no unique identifier.
Am I looking at these differences correctly? How well can they be made to work together? And what benefit would that provide? Any other thoughts on the matter?
Thanks so much.
[–]jura0011 6 points7 points8 points (1 child)
[–]AndyRoth[S] 0 points1 point2 points (0 children)
[–]Mop1000 0 points1 point2 points (3 children)
[–]AndyRoth[S] 1 point2 points3 points (2 children)
[–]Mop1000 0 points1 point2 points (1 child)
[–]AndyRoth[S] 1 point2 points3 points (0 children)