JSON filtering to make the response lighter