Added the type tag to the JSON object.