neural net implemnts json marshal interface.  test verifies copy of nn json matches original