Fix a compile error with mingw64

Fix an error below.

json.c:135:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
                   (state, values_size + ((unsigned long) value->u.object.values), 0)) )
                                          ^