added nJSON support with lg.njson(data);