Title: [咨询] 添加接口调用post时数据库中json字段如何表示 · Issue #838 · APIJSON/APIJSON · GitHub
Open Graph Title: [咨询] 添加接口调用post时数据库中json字段如何表示 · Issue #838 · APIJSON/APIJSON
X Title: [咨询] 添加接口调用post时数据库中json字段如何表示 · Issue #838 · APIJSON/APIJSON
Description: Description {{url}}/apijson/post { "ComplexPoly4OffsetLib" : { "id" : null, "uuid" : "0198d0a1-6302-70e5-adee-2a49d3446a8b", "full_entity_key" : "Fdm20-Rpc-dev_760300368696180736_760299724456656962", "from_sys" : "Fdm20-Rpc-dev", "order_...
Open Graph Description: Description {{url}}/apijson/post { "ComplexPoly4OffsetLib" : { "id" : null, "uuid" : "0198d0a1-6302-70e5-adee-2a49d3446a8b", "full_entity_key" : "Fdm20-Rpc-dev_760300368696180736_760299724456656962...
X Description: Description {{url}}/apijson/post { "ComplexPoly4OffsetLib" : { "id" : null, "uuid" : "0198d0a1-6302-70e5-adee-2a49d3446a8b", "full_entity_key" : &q...
Opengraph URL: https://github.com/APIJSON/APIJSON/issues/838
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[咨询] 添加接口调用post时数据库中json字段如何表示","articleBody":"### Description\n\n{{url}}/apijson/post\n{\n \"ComplexPoly4OffsetLib\" : {\n \"id\" : null,\n \"uuid\" : \"0198d0a1-6302-70e5-adee-2a49d3446a8b\",\n \"full_entity_key\" : \"Fdm20-Rpc-dev_760300368696180736_760299724456656962\",\n \"from_sys\" : \"Fdm20-Rpc-dev\",\n \"order_id\" : null,\n \"order_code\" : null,\n \"batch_id\" : \"760300368696180736\",\n \"batch_code\" : \"YFceshi20250721001\",\n \"entity_key\" : \"760299724456656962\",\n \"entity_code\" : \"S250721990920-1001\",\n \"duplicate\" : null,\n \"poly\" : {\n \"type\" : \"Shape\"\n },\n \"poly_md5\" : \"a07676153f6ffa7e8381de8614ec3d76\",\n \"edge_count\" : 12,\n \"edge_offset_list\" : [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ],\n \"model_build_time\" : \"2025-07-21 10:16:54\",\n \"import_time\" : null,\n \"create_time\" : null,\n \"update_time\" : null\n },\n \"tag\": \"ComplexPoly4OffsetLib\"\n}\n请教一下,我想往数据库里新增一条记录,poly是mysql json字段类型, 发送的数据里,poly用{}来表示,数据库里写不进去,改用json字符串,可以写入进去,有没有比较好的办法,用字符串的方式,对前端不太友好","author":{"url":"https://github.com/maorx","@type":"Person","name":"maorx"},"datePublished":"2025-08-22T09:59:52Z","url":"https://github.com/APIJSON/APIJSON/issues/838"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:229a9b4e-3ff6-0893-a360-ac10d5a2249c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A766:8668A:1A5163:2460A3:6AFCA9B4 |
| html-safe-nonce | 05d0e7be957464a8cf1b47ffcb6b3de2fab83d9749260f929a04a2336fa46a5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzY2Ojg2NjhBOjFBNTE2MzoyNDYwQTM6NkFGQ0E5QjQiLCJ2aXNpdG9yX2lkIjoiMzI1MTA0MDM3NjU1NDU2NDAyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 187dd4a0c35f1c789ab25abfd86924c42c10b32a6bc678de01da95bb9661b773 |
| hovercard-subject-tag | issue:3344906209 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/APIJSON/APIJSON/838/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90d395c2d1325ae4f15e5e718ce7ef07b209b2566a32935b5b5976d0a60b3ac9/APIJSON/APIJSON/issues/838 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90d395c2d1325ae4f15e5e718ce7ef07b209b2566a32935b5b5976d0a60b3ac9/APIJSON/APIJSON/issues/838 |
| og:image:alt | Description {{url}}/apijson/post { "ComplexPoly4OffsetLib" : { "id" : null, "uuid" : "0198d0a1-6302-70e5-adee-2a49d3446a8b", "full_entity_key" : "Fdm20-Rpc-dev_760300368696180736_760299724456656962... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maorx |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-preview |
| go-import | github.com/APIJSON/APIJSON git https://github.com/APIJSON/APIJSON.git |
| octolytics-dimension-user_id | 41146037 |
| octolytics-dimension-user_login | APIJSON |
| octolytics-dimension-repository_id | 74359442 |
| octolytics-dimension-repository_nwo | APIJSON/APIJSON |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 74359442 |
| octolytics-dimension-repository_network_root_nwo | APIJSON/APIJSON |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width