Fixed missing JSON serialisation