Bug fixes and simple array addition to json package