Questions tagged [xsuperobject]

XSuperObject is a new JSON library replacing the original SuperObject library. XSuperObject introduces cross-platform compatibility which wasn't available with the original SuperObject library.

XSuperObject is a new JSON library replacing the original SuperObject library. XSuperObject introduces cross-platform compatibility which wasn't available with the original SuperObject library.

The original SuperObject library was created for use in Windows applications. However, it was not compatible with other platforms such as Android, iOS, or OSX when Delphi introduced them. So XSuperObject was created as a replacement to SuperObject which works on all platforms which Delphi supports.

12 questions
2
votes
2 answers

How to access nested values in JSON using X-SuperObject

I want to get all the users from this json. { "status": "ok", "next_max_id": "AQAmA1l9NAQXa", "sections": [ { "module": null, "show_view_all": null, "title": null, "users": [ { "pk": 48165888, …
mal.co.vb
  • 23
  • 7
2
votes
1 answer

Delphi XE7: How can I make XSuperObject output accented characters?

uses ... XSuperObject; procedure TForm1.Button1Click(Sender: TObject); var Json: ISuperObject; begin Memo1.Lines.Add('{"Evênements":"Noël"}'); Json := SO('{"Evênements":"Noël"}'); Memo1.Lines.Add(Json.AsJSON(True)); end; This code…
Rob
  • 155
  • 1
  • 12
1
vote
1 answer

How can i get to the inner part of a multilevelled JSON structure?

I'm trying to get some local weather data out of a JSON-file. If i had any hair when i started this it would be gone by now. It's so frustrating, but i can not seem to get my head around this. I read all about here at the stack, but i'm still stuck.…
Sjubussen
  • 51
  • 1
  • 8
1
vote
1 answer

How To collect values from JSON response using XsuperObject

I want to parse this JSON using xSuperObject: { "data": { "user": { "edge_followed_by": { "count": 29594, "page_info": { "has_next_page": true, …
Constant
  • 13
  • 3
1
vote
0 answers

Delphi XE7: How to correctly derive from a class+interface pair? (XSuperObject: ISuperArray+TSuperArray)

I need to add some functionality to the TObjectArray class in the XSuperObject library. I could just add it directly into the source code in XSuperObject.pas, but that's not how I should do it. Instead I want to derive my own interface+class from…
Rob
  • 155
  • 1
  • 12
1
vote
1 answer

Projects fail to start in iOS when adding XSuperObject

I've already reported this directly to the X-SuperObject project, but I thought I may get more quality help on Stack Overflow. Using Delphi XE8, I have issues using XSuperObject on iOS Simulator (7.1, 8.1, 8.2 and 8.3). So I started an empty…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
0
votes
1 answer

X-SuperObject thinks that non existent keys exists

There's code a minimum reproducible example in my previous question. Please let me know if you want it copied here. Basically, I noticed that this code: if Assigned(job['Employer.Name.Normalized']) then Memo1.Lines.Add('Employer name = ' +…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
0
votes
2 answers

XSuperObject: what's wrong with this date field?

unit fmainForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; procedure…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
0
votes
1 answer

Geting some fields of class to JSON

How to get JSON, which contains only Name and Flags? TUser = class private FName: string; FFlags: UInt32; FFields: UInt32; FCreated: TDateTime; public property Name: string read FName write FName; property Flags:…
Alex Egorov
  • 907
  • 7
  • 26
0
votes
1 answer

Extract value from JSON using ISuperObject in Delphi 10.4

From this JSON (excerpt from full sample): {"sections": [ {"layout_type":"media_grid" ,"layout_content": {"medias": [ {"media": {"taken_at":1618071166 ,"pk":2548887321653297579 …
mag_sik
  • 25
  • 4
0
votes
1 answer

How do I query a JSON array that is only with [] with XSuperObject

I have this array: ["a", "b", "c", "d"] I need to get these results out using XSuperObject. Currently, from my understanding of the XSuperObject library, you would need something like this to get the data out: aObj := SA(returnString); for i := 0…
0
votes
2 answers

How to get rid of this compiler warning?

I have a few classes (of TObject) in Delphi XE7 (Firemonkey) which have a property AsJson: uses System.Classes, System.SysUtils, XSuperObject; type TMyObject = class(TObject) public property AsJson: ISuperObject read GetAsJson; …
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327