Module:Sandbox/KylieTastic

local p = {} -- new package

function p.getgroup1data( frame ) local data = mw.loadJsonData( frame.args['json'] ); local group1data; group1data = ''; for row in pairs( data ) do if group1data ~= '' then group1data = group1data .. ': ' end; group1data = group1data .. data[row]['value']; end

return group1data; end

function p.getlegends( frame ) local data = mw.loadJsonData( frame.args['json'] ); local legends; legends = ''; for row in pairs( data ) do if legends ~= '' then legends = legends .. ': ' end; legends = legends .. data[row]['date']; end

return legends; end

return p