added php to miva array serialized, started json api wrapper