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
Post a Comment