Add JSON serailizer to custom object.