Fixing JSON parse problem, Which is causing the problem while listing out devices.