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

2013-01-24 Thread silvioprog
2013/1/24 Michael Van Canneyt > On Thu, 24 Jan 2013, silvioprog wrote:2013/1/24 Michael Van Canneyt < > mich...@freepascal.org> > >> [...] >> Maybe we can have a property for this. >> >> This would be an excellent idea. This new property could be to False by >> default. >> >> I'll open an i

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

2013-01-24 Thread Michael Van Canneyt
On Thu, 24 Jan 2013, silvioprog wrote: 2013/1/24 Michael Van Canneyt [...] Maybe we can have a property for this. This would be an excellent idea. This new property could be to False by default. I'll open an issue about this. Implemented it. Please test and close the bugreport if O

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

2013-01-24 Thread silvioprog
Done: http://bugs.freepascal.org/view.php?id=23745 2013/1/24 silvioprog > 2013/1/24 Michael Van Canneyt > >> [...] >> Maybe we can have a property for this. >> > > This would be an excellent idea. This new property could be to False by > default. > > I'll open an issue about this. > -- Silvio

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

2013-01-24 Thread silvioprog
2013/1/24 Michael Van Canneyt > [...] > Maybe we can have a property for this. This would be an excellent idea. This new property could be to False by default. I'll open an issue about this. -- Silvio Clécio My public projects - github.com/silvioprog _

[fpc-pascal] 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; CaseInsen