Section 6 of RFC draft v01 said that "All PASETO payloads MUST be a
JSON object [RFC8259].", but when builder->toString() called without
any claims it will store the claims as JSON array instead of object.
This commit fix the json_encode by adding parameter JSON_FORCE_OBJECT
when encoding claims on method sign().
Section 6 of RFC draft v01 said that "All PASETO payloads MUST be a JSON object [RFC8259].", but when builder->toString() called without any claims it will store the claims as JSON array instead of object.
This commit fix the json_encode by adding parameter JSON_FORCE_OBJECT when encoding claims on method sign().
Fix #119