added jsonString function