Skip to content

[BUG]: When I paste data in the JSON editor, JSON will be truncated in some positions #463

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

Open
aninstein opened this issue Feb 24, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@aninstein
Copy link

Issue description

When I paste data in the JSON editor, the JSON will be truncated at some positions, and I haven't summarized the pattern. Moreover, the truncated positions may be different each time I paste
{ "order": { "id": "test_order_id2", "account": { "id": 2022120502, "details": { "email": "user@example.com", "phone": "+1234567890" } }, "transaction": { "seq": 1234567891234567890, "platform": { "id": 0, "name": "Web" }, "classify": 1, "currency": "USD", "timezone": "Etc/UTC", "order_platform": 14, "status": 9, "items": [ { "item_id": "item_001", "name": "Product A", "quantity": 2, "price": 25.0 }, { "item_id": "item_002", "name": "Product B", "quantity": 1, "price": 15.0 } ], "shipping": { "address": { "street": "123 Main St", "city": "Sample City", "state": "CA", "zipcode": "90210", "country": "USA" }, "method": "Standard", "cost": 5.0, "tracking_number": "TRACK123456" } }, "payment": { "method": "Credit Card", "gateway": "Stripe", "transaction_id": "txn_001", "status": "Completed" }, "created_at": "2023-10-01T12:00:00Z", "updated_at": "2023-10-02T12:00:00Z", "notes": "This is a test order." }, "customer": { "id": "cust_001", "first_name": "John", "last_name": "Doe", "loyalty_points": 150, "preferences": { "newsletter": true, "sms_notifications": false, "preferred_contact_method": "email" }, "history": { "last_order_date": "2023-09-25", "total_spent": 500.0 } }, "metadata": { "source": "Mobile App", "referral_code": "REF123", "campaign": { "id": "camp_001", "name": "Fall Sale 2023" }, "tags": ["test", "sample", "order"] }, "settings": { "language": "en", "currency": "USD", "notifications": { "email": true, "push": true, "sms": false }, "privacy": { "data_sharing": false, "tracking": true } }, "status_history": [ { "status": "Pending", "timestamp": "2023-10-01T12:00:00Z" }, { "status": "Shipped", "timestamp": "2023-10-02T12:00:00Z" }, { "status": "Delivered", "timestamp": "2023-10-03T12:00:00Z" } ] }

Media & Screenshots

like:

Image

Operating system

  • OS: [e.g. iOS]:

  • Browser [e.g. chrome, safari]:

  • Any other details...

Priority this issue should have

Low (slightly annoying)

@aninstein aninstein added the bug Something isn't working label Feb 24, 2025
@AykutSarac
Copy link
Owner

This is an issue with monaco-editor at the moment, I will update the package once it gets fixed.

@AykutSarac AykutSarac marked this as a duplicate of #461 Mar 10, 2025
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