improved JSON generation in get_suggestions
trim optimization on import