docs(Documentation/api): fix JSON spacing, syntax highlighting

There were a few spots in the API documentation where the JSON wasn't spaced consistently, and one block wasn't being syntax-highlighted.  This patch fixes both.  Thanks for the great documentation!