JSON string support

Added JSON string support for the constructor and buildMenuBar