first parser to sendable JSON object.
fixed parser and added test logging method.