complex json gen test OK