Fix the server counterpart to be able to use JSON parsing