test and fix json lazy string serialization