Mongocp edit in 1.92 error "PHP error: json_decode(): integer overflow detected"

So I’m happily chugging along, editing my mongo file using the online editor, simple text changes, nothing structural as far as the data goes and BAM

I hit save and suddenly get “PHP error: json_decode(): integer overflow detected”

Now any time I try to edit the document it poops out on me. MONGO EDITOR Y U NO WORK?

GANTZ_v05c55p161%20(1).jpg?itok=kCM-FkAj 

Not a super big deal, I guess I can recreate my saved game and see if it works as a separate document…but dang.

Love and hamburgers,

Mario

Hi,

Run your JSON through this tool, it may give you a clue to the issue.

http://jsonlint.com/

Let me know.

Cheers.

But it’s not JSON though in mongo land, is it?

<snip>

{

    _id: ObjectId(“56d36b9f4eb44e4598bee7da”),

    objectId: “2863875fb1”,

    ships: [

        null,

        {

            x: 268.30856323242,

            URL: “e3 frigate”,

            rotation: 181,

            speed: 20.25,

            owner: {

                name: “Fred Varsane”,

                playerid: “02d83202b2”

            },

            moved: false,

            shipclass: “frigate”,

            weapons: [

                null,

                {

                    URL: “gfx.png”,

                    damage: 10,

                    name: “phaser”

                },

                {

                    URL: “gfx.png”,

                    damage: 13,

                    name: “heavyphaser”

                }

            ],

</snip>

Unless I’m missing something?

-Mario

Hi,

Yeah, it’s all JSON (or BSON) in Mongo-land. All the Table<->JSON conversions are done in the background.

Cheers.

Well I went ahead and upgraded to 1.93, and recreated my table and all works fine. I’m thinking maybe I fat fingered somn when editing? However, the editor usually was pretty good about letting me know if I malformed somn…ah well. Chock it up to a typo and we’ll call it closed. :slight_smile:

-Mario

My favorite bug. :slight_smile:

Cheers.

Hi,

Run your JSON through this tool, it may give you a clue to the issue.

http://jsonlint.com/

Let me know.

Cheers.

But it’s not JSON though in mongo land, is it?

<snip>

{

    _id: ObjectId(“56d36b9f4eb44e4598bee7da”),

    objectId: “2863875fb1”,

    ships: [

        null,

        {

            x: 268.30856323242,

            URL: “e3 frigate”,

            rotation: 181,

            speed: 20.25,

            owner: {

                name: “Fred Varsane”,

                playerid: “02d83202b2”

            },

            moved: false,

            shipclass: “frigate”,

            weapons: [

                null,

                {

                    URL: “gfx.png”,

                    damage: 10,

                    name: “phaser”

                },

                {

                    URL: “gfx.png”,

                    damage: 13,

                    name: “heavyphaser”

                }

            ],

</snip>

Unless I’m missing something?

-Mario

Hi,

Yeah, it’s all JSON (or BSON) in Mongo-land. All the Table<->JSON conversions are done in the background.

Cheers.

Well I went ahead and upgraded to 1.93, and recreated my table and all works fine. I’m thinking maybe I fat fingered somn when editing? However, the editor usually was pretty good about letting me know if I malformed somn…ah well. Chock it up to a typo and we’ll call it closed. :slight_smile:

-Mario

My favorite bug. :slight_smile:

Cheers.