Convert integer value exceeding the maximum numeric value in JavaScript to string

Open
#252 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api, backend

Research direction

The issue concerns integer serialization in the JSON gem for values stored as bigint and served through a Rails API to an EmberJS app. Start by reproducing a value beyond JavaScript's maximum numeric value and tracing how the JSON gem serializes it. Done means the API delivers such values safely to JavaScript consumers, with tests covering the behavior.

Written by the indexing model from the issue text.

Description

new feature

We have an issue with integer values served by our Rails API and consumed by EmberJS app. They are stored in the DB as bigint and they exceed the maximum numeric value in JavaScript.
Isn't it something that should be handled by this gem?

Dominant language
Ruby
Stars
785
Forks
390
Avg merge
7h 14m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/json

All issues in ruby/json

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.