Change NodeToString.cpp to output JSON not html
Summary: X-link: https://github.com/facebook/react-native/pull/42645 We want to be able to capture Yoga trees in production. To do this we need to serialize and deserialize the in-memory representation of a tree. We have a way to turn a tree into html using NodeToString.cpp but that outputs html, which is going to be hard to deserialize. So, I added the [nlohmann json library](https://github.com/nlohmann/json/tree/develop?tab=readme-ov-file) so that we can serialize into JSON instead. Then we need to change the inner workings of NodeToString.cpp to use this library instead of its html. Differential Revision: D52929268
This commit is contained in:
committed by
Facebook GitHub Bot
parent
58aa090774
commit
295741c1b4
24766
lib/json/json.hpp
Normal file
24766
lib/json/json.hpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user