© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
John Parker

Eloquent `point` field type data triggers "Unexpected end of JSON input"

Is anyone using the
point
point
Eloquent field/attribute type in any of their models that have Filament resources? I've a resource that makes use of this which is failing with an "Unexpected end of JSON input" console error when attempting to view/edit a model which contains encoded point data. Attempting to create a new instance of the model initially works as expected, up until the point that the newly created model with the encoded data present is loaded.

Dropping the database column and disabling the custom model setters that set the data based on field inputs resolves the issue, so it would seem as first glance to be related to the way the encoded point data is handled by the JSON encoder. As such, I'm wondering if anyone has encountered anything similar before I go bug hunting/try and create a stripped back project to illustrate the issue.

I suspect this may be a Livewire v3 issue rather than a Filament one, but I thought I'd ask here first.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

LocationResource - Uncaught SyntaxError: JSON.parse: unexpected end of data
FilamentFFilament / ❓┊help
3y ago
"Uncaught SyntaxError: Unexpected end of JSON input" console error when viewing or editing resource
FilamentFFilament / ❓┊help
3y ago
Automatically set input field through the input of another field?
FilamentFFilament / ❓┊help
2y ago
Can't get hydration of nested json-field data to work
FilamentFFilament / ❓┊help
15mo ago