Boost logo

Boost :

From: Vinícius dos Santos Oliveira (vini.ipsmaker_at_[hidden])
Date: 2020-09-22 01:10:47


Em seg., 21 de set. de 2020 às 15:46, Vinnie Falco via Boost
<boost_at_[hidden]> escreveu:
> * Where are the immensely popular JSON Serialization libraries?

My gopher friend actually makes fun of us because we don't have
json.Unmarshal(): https://blog.golang.org/json

It's him making fun of us/me that gave me the idea to integrate
Boost.Serialization and Boost.Hana's Struct.

```go
type Bid struct {
 Price string
 Size string
 NumOrders int
}
type OrderBook struct {
 Sequence int64 `json:"sequence"`
 Bids []Bid `json:"bids"`
 Asks []Bid `json:"asks"`
}

...
var book OrderBook
json.Unmarshal(buffer, &book)
```

But that's a subject that I'll want to discuss with Robert Ramey after
Boost.JSON's review.

In my job, we have our own in-house serialization framework. I guess
that's what many others do as well in C++, but the requirements on the
JSON library to be usable in serialization frameworks would be quite
similar. Compare Boost.Serialization and QDataStream from Qt.

--
Vinícius dos Santos Oliveira
https://vinipsmaker.github.io/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk