Skip to content

Commit eca1966

Browse files
committed
Fix NEWS code block
1 parent a37413c commit eca1966

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

NEWS.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@
3333
([#322](https://github.com/glin/reactable/issues/322))
3434
* JSON serialization of data can now be customized using the `reactable.json.func` option. This is an experimental feature for advanced use only, and intentionally undocumented outside of NEWS. reactable may change how data is serialized between versions and does not guarantee stability. See `reactable:::toJSON` as a reference for how data is currently serialized. (@khusmann, [#415](https://github.com/glin/reactable/issues/415))
3535

36-
Example usage:
37-
```r
38-
# Use yyjsonr as a faster alternative for JSON serialization. Note that this is not 1:1 consistent with
39-
# jsonlite, and several edge cases are not handled here, including data frames with 1 row, datetimes, and NULLs.
40-
options(reactable.json.func = function(x, ...) {
41-
result <- yyjsonr::write_json_str(
42-
x,
43-
opts = yyjsonr::opts_write_json(
44-
dataframe = "columns",
45-
auto_unbox = TRUE,
46-
num_specials = "string"
47-
)
36+
Example usage:
37+
```r
38+
# Use yyjsonr as a faster alternative for JSON serialization. Note that this is not 1:1 consistent with
39+
# jsonlite, and several edge cases are not handled here, including data frames with 1 row, datetimes, and NULLs.
40+
options(reactable.json.func = function(x, ...) {
41+
result <- yyjsonr::write_json_str(
42+
x,
43+
opts = yyjsonr::opts_write_json(
44+
dataframe = "columns",
45+
auto_unbox = TRUE,
46+
num_specials = "string"
4847
)
49-
class(result) <- "json"
50-
result
51-
})
52-
```
48+
)
49+
class(result) <- "json"
50+
result
51+
})
52+
```
5353

5454
## Minor improvements and bug fixes
5555

0 commit comments

Comments
 (0)