Allow passing of JSON string directly to insert function.