an answer to a stackoverflow question http://stackoverflow.com/questions/20986995/jsonignoreproperties-not-working/20989426