Home › Forums › ACF PRO › Process with working with JSON › Reply To: Process with working with JSON
exporting/importing is different and using local JSON.
Export/Import creates an array in JSON that can hold multiple groups this is the source of the extra bracket.
Local JSON stores a single group.
I’m not sure I understand your process.
My process:
1) create an acf-json folder
2) save field groups which creates json files
3) commit changes to git repo
4) pull changes from git repo
5) upload json changes to server
6) syn field groups
However, as far as 6 goes, I only do this on my dev site. You should only sync field groups on the site where you make changes. These groups should not exist in the DB to be edited on sites where they will never be edited. Unless you plan on editing the field groups on staging/production the only place they should exist is as JSON files.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.