I've got a problem by serializing a neuronal Network to Json, I also save this Network to an Azure Table Storage (also json). This problem might cause even in other cases.
Short structure:
The Neuronal Network Class have a List of NeuronLayers, each Neuron Layer has his List of Neurons. The Neurons have a List of Connections, each Connection refers a Neuron (Entry Neuron) from the Layer before.
Problem:
When I Serialize the Neuronal Network and deserialize it, the Connection loses the reference to the entry neuron. The Json Deserializer just creating a new Neuron instead of referring the specified entry neuron.
So the problem, in short, is that object references get lost on serialization.
I´ve also built a method to reference the entry neurons, but this is not a good way of doing, and I don't know why but it provides less performance than before serialization.
So did Anybody know how to save an object without losing his references to other serialized objects? I think a binary formatter could handle this...
Thanks for Future Advice!!