[Lazarus] How to insert item in TJSONObject?

silvioprog silvioprog at gmail.com
Mon Dec 12 11:17:30 CET 2011


Hello,

To Add or Delete is very easy:

TJSONObject(FJSONData).Add('Item name', 'Item value');

TJSONObject(FJSONData).Delete(AIndex);

And to Insert?

TJSONObject(FJSONData).Insert(AIndex, 'Item name', 'Item value')? No
no no... TJSONObject don't implements the method Insert (or Move
method). :(

Thx.

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================


More information about the Lazarus mailing list