add serializer for json weight output, chart via d3 for proof of concept