Add JSON Options

Corrects the problem with JSON being converted to an array by allow multiple options for conversion from out of the API - array, object or raw.