Update JSON.swift

Fix subscript error : 'JSONValue' does not have a member named 'subscript'
And add public to var string, integer, bool, array, object, double
 Swift beta 4