<div dir="ltr"><div class="gmail_quote">On Sun, Dec 18, 2011 at 19:34, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2011/12/18 ik <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>>:<br>
<div class="im">> Hello,<br>
><br>
> I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser.<br>
><br>
> I've written the following code:<br>
<br>
</div>Use:<br>
<br>
var<br>
parser: TJSONParser;<br>
json_data: TJSONData;<br>
json_file: TFileStream;<br>
begin<br>
json_file := TFileStream.Create('test.json', fmOpenRead);<br>
parser := TJSONParser.Create(json_file);<br>
json_data := parser.Parse;<br>
WriteLn(json_data.AsJSON);<br>
json_data.Free;<br>
json_file.Free;<br>
parser.Free;<br>
end;<br>
<br>
Thx.<br></blockquote><div><br>Thanks, that works.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
Silvio Clécio<br>
===============================================<br>
Blog - <<a href="http://silvioprog.com.br" target="_blank">silvioprog.com.br</a>><br>
Twitter - <<a href="http://twitter.com/silvioprog" target="_blank">twitter.com/silvioprog</a>><br>
Facebook - <<a href="http://facebook.com/silvioclecio" target="_blank">facebook.com/silvioclecio</a>><br>
LazSolutions - <<a href="http://code.google.com/p/lazsolutions" target="_blank">code.google.com/p/lazsolutions</a>><br>
Lazarus-BR - <<a href="http://groups.google.com.br/group/lazarus-br?hl=pt-BR" target="_blank">groups.google.com.br/group/lazarus-br?hl=pt-BR</a>><br>
===============================================<br>
* Conheça nosso canal IRC sobre Lazarus: #lazarus-br *<br>
===============================================<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br></div>