fix json to be valid (replace ' with ") and fix compilation warnings