Getting data in json format however it is dumped on the screen