JSON parsing moved to server side