ruby / ruby/json

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

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

Nobody has claimed this yet.

new feature
Dominant language
Ruby
Stars
782
Forks
383
Avg merge
1d 18h
Merged PRs (30d)
10

Description

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?

Contributor guide

No contributing guide indexed for this repository

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.