[fpc-devel] FPJSONRTTI: Case insensitive.

2013-01-24 Thread silvioprog
Hello, I have this JSON: { id: 1, name: Silvio Clécio } And my object is: TPerson = class private FID: Int64; FName: string; published property ID: Int64 read FID write FID; property Name: string read FName write FName; end; But, FPJSONRTTI don't find the fields, except if I change my

Re: [fpc-devel] FPJSONRTTI: Case insensitive.

2013-01-24 Thread Michael Van Canneyt
On Thu, 24 Jan 2013, silvioprog wrote: Hello, I have this JSON: { id: 1, name: Silvio Clécio } JSON is JavaScript and JavaScript *is* case sensitive. But you can use TJSONObject.IndexOfName with CaseInsentive to True: Function IndexOfName(const AName: TJSONStringType;