For what it’s worth, I’ve created a JSON version of Shakespeare’s sonnets.
I’ve validated this with JSON Lint and checked the text against an XML version of the sonnets on the Shakespeare Geek site.
The JSON text is based on the Project Gutenberg text except that I’ve used Arabic numerals for numbering, because that’s what was in the 1609 first quarto edition.
If you like the sonnets, there is a nice facsimile viewer at Internet Shakespeare Editions.