make advanced type conversions toggle-able

this patch replaces the previous json parsing toggle with one that
handles all advanced type conversions, including the array and datetime
ones.