convert to string for JSON is now working. Got a small bug in the JSON array creator