convert to json instead of serial php for easier find+replaces