I’ve implemented Mappress and it is working well on my site. However I now want to try and query the wp_mappress_maps table and [obj] field and access using JSON editor e.g. http://www.jsoneditoronline.org/
However, I keep getting:
Error: Parse error on line 1:
Expecting ‘STRING’, ‘}’, got ‘undefined’
Has anyone else had trouble accessing the [obj] field with JSON?
The reason for the error is that the data is actually PHP serialized objects – not JSON. You can retrieve it using the functions in file ‘mappress_map.php’, or using the PHP unserialize() function: http://php.net/manual/en/function.unserialize.php