We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something whong with TYamlArray when TYamlObject with TYamlString inside.
procedure TfmMain.FormCreate(Sender: TObject); begin var doc := TYamlObject.Create; try doc.AddPair('String', 'Value1'); doc.AddPair('Integer', TYamlInteger.Create(38)); var arr1 := TYamlArray.Create; arr1.AddElement(TYamlString.Create('String1')); arr1.AddElement(TYamlString.Create('String2')); var arrObj1 := TYamlObject.Create; arrObj1.AddPair('ArrObj1String1', 'more'); arrObj1.AddPair('ArrObj1String2', 'AndMore'); arr1.AddElement(arrObj1); // add arrObj to array doc.AddPair('TheArray', arr1); // add arr to doc Memo1.Lines.Text := doc.ToYaml; finally FreeAndNil(doc); end; end;
Memo1 text now looks like this.
String: Value1 Integer: 38 TheArray: - ArrObj1String1: more ArrObj1String2: AndMore
Awaited result is
String: Value1 Integer: 38 TheArray: - String1 - String2 - ArrObj1String1: more ArrObj1String2: AndMore
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Something whong with TYamlArray when TYamlObject with TYamlString inside.
Memo1 text now looks like this.
Awaited result is
The text was updated successfully, but these errors were encountered: