php - how to export a Json file with phpAdmin without COMMENTS (// ..... */) -


i have .json file exported phpadmin tool. problem json invalid.... ask me how possible phpadmin exports json file not correct? comments in file biggest problem. please me because when attach .json tell me json invalid. , firebase can't use this.

it seems can't ignore comment generation in json format, if have access phpmyadmin source code on server can remove comment generation pretty in file

phpmyadmin/libraries/plugins/export/exportjson.php

see exportheader function , other comments search file // (it's not long).

if don't have access phpmyadmin source code may able remove comments after file creation (either manually or program on computer if need once or few times). can use 2 regular expressions that, if need further can post example.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -