Here's a small function to check if the property starts with [
or {
and parse the value from a sting into JSON or an array. Properties might be a string or intiger also.
import { mapValues } from 'lodash'
export function resolveValues (data) {
return mapValues(data, item => {
if (item.match(/^\[/) || item.match(/^\{/)) return JSON.parse(item)
return item
})
}