Remove invalid keys
Fix data from JSON formatting
Add API support to mao