Added class to create a JSON from string