added json to linear array output