added support to generate map from JSON objects