JSON functionality "improvements"

Converted JSON input to an array.