Send JSON type to client to remove the need for parsing and use structs in stats route for future processing