androidx / constraintlayout

ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way
Apache License 2.0
1.06k stars 177 forks source link

Incorrect JSON syntax produced by ConstraintSet#writeState (WriteJsonEngine) #770

Open MairwunNx opened 1 year ago

MairwunNx commented 1 year ago

JSON produced by ConstraintSet$WriteJsonEngine from method ConstraintSet#writeState(0) does not follows RFC 8259 or 4627 standards.

For example in WriteJsonEngine as key punctuators used single quote but expected double quote.

jafu888 commented 1 year ago

This was an experimental that will probably be removed. (That is why it is not documented.) We are developing a standalone class that generates JSON from a ConstraintLayout