Fixing a bug on JSON response

In the case where webservice receives two arguments (component & version) If there is no match for version, the state should be alternative and return all the entries for that component.