move to new JSON api helper