Thanks Wally,<br><br>That helped a lot.<br>I can get geoJson to work:<br>new OpenLayers.Format.GeoJSON().write(myLayer.features)<br>but the plain JSON. I'm not interested in the geometries:<br>new OpenLayers.Format.JSON().write(myLayer.features)<br>

It returns null<br>
<br>--<br>Paul<br><br><br><div class="gmail_quote">2012/6/14 Wally Atkins <span dir="ltr"><<a href="mailto:wallyatkins@gmail.com" target="_blank">wallyatkins@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Try this openlayers json to write out your object ... That might get<br>
you what you need:<br>
<br>
<a href="http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Format/JSON-js.html" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Format/JSON-js.html</a><br>


<div><div class="h5"><br>
<br>
On Jun 14, 2012, at 8:16 AM, "Paul Meems (Top-X)" <<a href="mailto:p.meems@topx-group.nl">p.meems@topx-group.nl</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I have a website with a map showing a few vectors using WFS and the properties of those vectors in a table.<br>
> I want give the user to opportunity to save the table as a PDF.<br>
> To do this I want to convert the features to a json string and put that in a hidden form element and submit that form to a PHP file that will create the PDF.<br>
><br>
> Of course I can loop through the features and create the json string manually, but I wonder if I can automatically export to features using something like:<br>
> feature.toJSON().<br>
><br>
> Of course I've used Google but the answers found talked about the other way round: JSON to features.<br>
><br>
> Please advice.<br>
><br>
> Thanks,<br>
><br>
> Paul<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br>