Add custom JSON serialization

Because the custom serialization was missing, dumpdata generated JSON
like "price": "Price('200', currency='USD')", which can't be loaded.
New serialization method saves just the net value, like the
complementary db function.