Replaced strndups with parson_strndups, error handling when serializing, macro to make parson compile in visual studio.