Added flatten option. [fl=<boolean>] to fetch results as flatten instead of nested json.