Build the JSON plugin and fix the historical bugs