Converts ReStructuredText into JSON.