Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not parse correctly after compressing large string size #9

Open
meftunca opened this issue Jul 1, 2024 · 0 comments
Open

does not parse correctly after compressing large string size #9

meftunca opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@meftunca
Copy link
Collaborator

meftunca commented Jul 1, 2024

[JavaScript] I get this error if the string size is 64 or more

Input:

const sampleData = {
    postId: "9776bfe3-6a5e-4b5c-b93d-4037447a0b4a",
    title: "Dedecor aspernatur defessus tamdiu amet amita facere tametsi.aa",
    content: "Commemoro vomica cupressus coepi virga demitto. Thesis ipsa dencio acceptus vociferor victus quasi ventito. Corporis tempora territo arcus.",
    createdAt: "Sun Jan 14 2024",
    updatedAt: "Thu Jun 27 2024",
    name: "John Doe",
    age: 30,
    isActive: true,
    isMarried: null,
    isStudent: false,
    courses: ["Math", "Science", "History"],
    grades: [95.3, 88, 92.7, "A+"],
    address: {
        street: "123 Main St",
        city: "Anytown",
        zip: "12345"
    }
};

Output:

{
  postId: "9776bfe3-6a5e-4b5c-b93d-4037447a0b4a",
  title: "Dedecor aspernatur defessus tamdiu amet amita facere tametsi.aa",
  content: "ommemoro vomica cupressus coepi virga demitto. Thesis ipsa deee$createdAt\u0002<Sun Jan 14 2024$updatedAt\u0002<Thu Jun 27 2024\u0010name\u0002 John Doe\fageI\u001e\u0000\u0000\u0000 isActive\u0018$isMarried\u0000$isStudent\b\u001ccourses\u0005\f\u0002\u0010Math\u0002\u001cScience\u0002\u001cHistory\u0018grades\u0005\u0010a33333�W@IX\u0000\u0000\u0000a�����,W@\u0002\bA+\u001caddress\u0003\f\u0018street\u0002,123 Main St\u0010city\u0002\u001cAnytown\fzip\u0002\u001412345",
  "": null,
}
@stephenberry stephenberry added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants